Skip to content
Snippets Groups Projects
Commit 4627ea58 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

daemon: Correctly print substituter's stderr.

* nix/libstore/local-store.cc (LocalStore::getLineFromSubstituter): Reinstate
  commit 9ba0b8d3.  Fixes a regression introduced in 2bb04905.
parent 820a4032
No related branches found
No related tags found
No related merge requests found
......@@ -1165,7 +1165,8 @@ string LocalStore::getLineFromSubstituter(RunningSubstituter & run)
string::size_type p;
while (((p = err.find('\n')) != string::npos)
|| ((p = err.find('\r')) != string::npos)) {
printMsg(lvlError, run.program + ": " + string(err, 0, p));
string thing(err, 0, p + 1);
writeToStderr(run.program + ": " + thing);
err = string(err, p + 1);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment