mirror of
https://github.com/predis/predis.git
synced 2026-09-14 20:37:29 +00:00
Fix missing change that should have been part of commit cc2349c.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user