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