Fix and reword some exception messages.

This commit is contained in:
Daniele Alessandri
2013-12-16 13:17:45 +01:00
parent 43f278fb71
commit 0f34f41ccf
70 changed files with 172 additions and 180 deletions
+2 -2
View File
@@ -82,13 +82,13 @@ class ResponseReader implements ResponseReaderInterface
$header = $connection->readLine();
if ($header === '') {
$this->onProtocolError($connection, 'Unexpected empty header');
$this->onProtocolError($connection, 'Unexpected empty reponse header.');
}
$prefix = $header[0];
if (!isset($this->handlers[$prefix])) {
$this->onProtocolError($connection, "Unknown prefix: '$prefix'");
$this->onProtocolError($connection, "Unknown response prefix: '$prefix'.");
}
$handler = $this->handlers[$prefix];