mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 09:12:40 +00:00
* Handle error messages from the Nix worker containing the `%'
character. (Nix/216)
This commit is contained in:
parent
4ba6afaf48
commit
8c69dac8a1
@ -512,7 +512,7 @@ void RemoteStore::processStderr(Sink * sink, Source * source)
|
||||
if (msg == STDERR_ERROR) {
|
||||
string error = readString(from);
|
||||
unsigned int status = GET_PROTOCOL_MINOR(daemonVersion) >= 8 ? readInt(from) : 1;
|
||||
throw Error(error, status);
|
||||
throw Error(format("%1%") % error, status);
|
||||
}
|
||||
else if (msg != STDERR_LAST)
|
||||
throw Error("protocol error processing standard error");
|
||||
|
Loading…
Reference in New Issue
Block a user