We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ea4cf commit b170e7eCopy full SHA for b170e7e
Datagram/Buffer.php
@@ -47,7 +47,8 @@ public function handleWrite()
47
48
if ($ret < 0) {
49
$error = error_get_last();
50
- $this->emit('error', array(new Exception('Unable to send packet: ' . $error['message'])));
+ $message = 'Unable to send packet: ' . trim($error['message']);
51
+ $this->emit('error', array(new Exception($message)));
52
}
53
54
if (!$this->outgoing) {
0 commit comments