From 69c5071a6d75b58df3c1f4c6057a09a3ac491dda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 2 Dec 2020 22:21:00 +0100 Subject: [PATCH] Continued: - fixed socketType in exception, is now a getter MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../exceptions/socket/class_SocketConnectionException.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/main/exceptions/socket/class_SocketConnectionException.php b/framework/main/exceptions/socket/class_SocketConnectionException.php index 39ef8b95..efe94086 100644 --- a/framework/main/exceptions/socket/class_SocketConnectionException.php +++ b/framework/main/exceptions/socket/class_SocketConnectionException.php @@ -36,11 +36,11 @@ class SocketConnectionException extends AbstractSocketException { */ public function __construct (array $messageData, int $code) { // Construct the message - $message = sprintf('[%s:] Could not make a connection, type=%s, errno=%s, errstr=%s', + $message = sprintf('[%s:] Could not make a connection: socketType=%s,errno=%s,errstr=%s', $messageData[0]->__toString(), - gettype($messageData[1]), - $messageData[2], - $messageData[3] + $messageData[0]->getSocketType(), + $messageData[1], + $messageData[2] ); // Call parent exception constructor -- 2.39.5