mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01:00
* Propagate the "100" exit status for failed builds through the Nix
daemon.
This commit is contained in:
parent
eac93d6efe
commit
b1eb252172
3 changed files with 9 additions and 5 deletions
|
|
@ -509,8 +509,11 @@ void RemoteStore::processStderr(Sink * sink, Source * source)
|
|||
writeToStderr((const unsigned char *) s.c_str(), s.size());
|
||||
}
|
||||
}
|
||||
if (msg == STDERR_ERROR)
|
||||
throw Error(readString(from));
|
||||
if (msg == STDERR_ERROR) {
|
||||
string error = readString(from);
|
||||
unsigned int status = GET_PROTOCOL_MINOR(daemonVersion) >= 8 ? readInt(from) : 1;
|
||||
throw Error(error, status);
|
||||
}
|
||||
else if (msg != STDERR_LAST)
|
||||
throw Error("protocol error processing standard error");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue