Fix missing change that should have been part of commit cc2349c.

This commit is contained in:
Daniele Alessandri
2011-05-21 10:50:42 +02:00
parent 9f05f50899
commit deeb58644a
+2 -3
View File
@@ -79,11 +79,10 @@ class TextProtocol implements IProtocolProcessor {
return (int) $payload;
case '-': // error
$errorMessage = substr($payload, 4);
if ($this->_throwErrors) {
throw new ServerException($errorMessage);
throw new ServerException($payload);
}
return new ResponseError($errorMessage);
return new ResponseError($payload);
default:
Helpers::onCommunicationException(new ProtocolException(