Skip to content

Commit

Permalink
Fix Socket encryption error message
Browse files Browse the repository at this point in the history
  • Loading branch information
majna committed Nov 8, 2013
1 parent c5c640f commit ef205e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Cake/Network/Socket.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit ef205e8

Please sign in to comment.