Browse Source

daemon: Correctly print substituter's stderr.

* nix/libstore/local-store.cc (LocalStore::getLineFromSubstituter): Reinstate
  commit 9ba0b8d.  Fixes a regression introduced in 2bb0490.
version-0.8.3
Ludovic Courtès 7 years ago
parent
commit
4627ea5877
  1. 3
      nix/libstore/local-store.cc

3
nix/libstore/local-store.cc

@ -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);
}
}

Loading…
Cancel
Save