Enhance RpcException message with encryption algorithm details

This commit is contained in:
netkas 2025-01-14 19:26:31 -05:00
parent e5c6bed02e
commit 56acd4cf81

View file

@ -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;