1
0
Fork 0

Throw Exceotion instead of Error

pull/31/head
Stephan Unverwerth 2016-09-29 23:19:37 +02:00
parent b55404154e
commit ffea1d0c3a
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class ProtocolStreamWriter implements ProtocolWriter
while ($totalBytesWritten < $msgSize) { while ($totalBytesWritten < $msgSize) {
$bytesWritten = @fwrite($this->output, substr($data, $totalBytesWritten)); $bytesWritten = @fwrite($this->output, substr($data, $totalBytesWritten));
if ($bytesWritten === false) { if ($bytesWritten === false) {
throw new Error('Could not write message.'); throw new Exception('Could not write message.');
} }
$totalBytesWritten += $bytesWritten; $totalBytesWritten += $bytesWritten;
} }