forked from lix-project/lix
* 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) {
|
if (msg == STDERR_ERROR) {
|
||||||
string error = readString(from);
|
string error = readString(from);
|
||||||
unsigned int status = GET_PROTOCOL_MINOR(daemonVersion) >= 8 ? readInt(from) : 1;
|
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)
|
else if (msg != STDERR_LAST)
|
||||||
throw Error("protocol error processing standard error");
|
throw Error("protocol error processing standard error");
|
||||||
|
|
Loading…
Reference in a new issue