BF catch throwable instead of exceptions
This commit is contained in:
parent
f5470c9b0a
commit
4fe731a777
|
|
@ -105,7 +105,7 @@ class Controller
|
||||||
]));
|
]));
|
||||||
|
|
||||||
return $payload;
|
return $payload;
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
$reload = [
|
$reload = [
|
||||||
'event' => @$message['event'],
|
'event' => @$message['event'],
|
||||||
'data' => @$message['data'],
|
'data' => @$message['data'],
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ class Handler implements MessageComponentInterface
|
||||||
} else {
|
} else {
|
||||||
$this->addDataCheckLoop($connection, $message, $pid);
|
$this->addDataCheckLoop($connection, $message, $pid);
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
Log::channel('websocket')->error('onMessage unhandled error: '. $e->getMessage(), [
|
Log::channel('websocket')->error('onMessage unhandled error: '. $e->getMessage(), [
|
||||||
'file' => $e->getFile(),
|
'file' => $e->getFile(),
|
||||||
'line' => $e->getLine(),
|
'line' => $e->getLine(),
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class MockConnection extends Connection implements \Ratchet\ConnectionInterface
|
||||||
try {
|
try {
|
||||||
$property->setAccessible(true);
|
$property->setAccessible(true);
|
||||||
$this->{$property->getName()} = $property->getValue($original_connection);
|
$this->{$property->getName()} = $property->getValue($original_connection);
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue