Skip to content
Permalink
Browse files

Fix Socket encryption error message

  • Loading branch information...
majna committed Nov 8, 2013
1 parent c5c640f commit ef205e88c1099bf17d6b47e4bb9a709689970fcc
Showing with 1 addition and 5 deletions.
  1. +1 −5 Cake/Network/Socket.php
@@ -383,12 +383,8 @@ public function enableCrypto($type, $clientOrServer = 'client', $enable = true)
if ($enableCryptoResult === true) {
$this->encrypted = $enable;
return true;
} else {
$errorMessage = __d('cake_dev', 'Unable to perform enableCrypto operation on Cake\Error\Socket');
$this->setLastError(null, $errorMessage);
throw new Error\SocketException($errorMessage);
}
$errorMessage = __d('cake_dev', 'Unable to perform enableCrypto operation on CakeSocket');
$errorMessage = __d('cake_dev', 'Unable to perform enableCrypto operation on the current socket');
$this->setLastError(null, $errorMessage);
throw new Error\SocketException($errorMessage);
}

0 comments on commit ef205e8

Please sign in to comment.
You can’t perform that action at this time.