From: Roland Häder Date: Wed, 2 Dec 2020 21:21:00 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=69c5071a6d75b58df3c1f4c6057a09a3ac491dda Continued: - fixed socketType in exception, is now a getter Signed-off-by: Roland Häder --- 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