BF catch throwable instead of exceptions

This commit is contained in:
a6a2f5842 2025-09-06 10:43:07 +02:00
parent f5470c9b0a
commit 4fe731a777
3 changed files with 3 additions and 3 deletions

View File

@ -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'],

View File

@ -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(),

View File

@ -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) {
} }
} }