* Handle error messages from the Nix worker containing the `%'

character.  (Nix/216)
This commit is contained in:
Eelco Dolstra 2011-04-19 10:44:44 +00:00
parent 4ba6afaf48
commit 8c69dac8a1

View file

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