mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
daemon: Correctly print substituter's stderr.
* nix/libstore/local-store.cc (LocalStore::getLineFromSubstituter): Reinstate commit9ba0b8d
. Fixes a regression introduced in2bb0490
.
This commit is contained in:
parent
820a40327d
commit
4627ea5877
1 changed files with 2 additions and 1 deletions
|
@ -1165,7 +1165,8 @@ string LocalStore::getLineFromSubstituter(RunningSubstituter & run)
|
||||||
string::size_type p;
|
string::size_type p;
|
||||||
while (((p = err.find('\n')) != string::npos)
|
while (((p = err.find('\n')) != string::npos)
|
||||||
|| ((p = err.find('\r')) != 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);
|
err = string(err, p + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue