From c59e24508d728decc351d7bbb095b0cd25a7d62b Mon Sep 17 00:00:00 2001 From: kafkiansky Date: Tue, 17 Mar 2026 19:12:10 +0300 Subject: [PATCH] Use `Protocol\Err::toException()` in `SocketConnection::execute()` --- src/Internal/Connection/SocketConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } }