diff --git a/src/Internal/Connection/SocketConnection.php b/src/Internal/Connection/SocketConnection.php index 16d9b14..0c2eff3 100644 --- a/src/Internal/Connection/SocketConnection.php +++ b/src/Internal/Connection/SocketConnection.php @@ -106,7 +106,7 @@ public function execute(Protocol\Frame $frame): void $frame = $deferred->getFuture()->await(); if ($frame instanceof Protocol\Err) { - throw new \RuntimeException($frame->message); + throw $frame->toException(); } } }