From 56acd4cf81c02b1be8cf289d5e0c7a12ba88a717 Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 14 Jan 2025 19:26:31 -0500 Subject: [PATCH] Enhance RpcException message with encryption algorithm details --- src/Socialbox/Classes/RpcClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/RpcClient.php b/src/Socialbox/Classes/RpcClient.php index 1371cb5..a370ab5 100644 --- a/src/Socialbox/Classes/RpcClient.php +++ b/src/Socialbox/Classes/RpcClient.php @@ -84,7 +84,7 @@ // Check if the transport encryption algorithm has changed if($this->serverInformation->getTransportEncryptionAlgorithm() !== $exportedSession->getTransportEncryptionAlgorithm()) { - throw new RpcException('The server has changed its transport encryption algorithm, a new session must be created'); + throw new RpcException('The server has changed its transport encryption algorithm, a new session must be created, old algorithm: ' . $exportedSession->getTransportEncryptionAlgorithm() . ', new algorithm: ' . $this->serverInformation->getTransportEncryptionAlgorithm()); } return;