diff --git a/lib/Cake/Console/ConsoleErrorHandler.php b/lib/Cake/Console/ConsoleErrorHandler.php index 84bced9c409..2f508382a7b 100644 --- a/lib/Cake/Console/ConsoleErrorHandler.php +++ b/lib/Cake/Console/ConsoleErrorHandler.php @@ -14,8 +14,8 @@ */ namespace Cake\Console; -use Cake\Error\FatalErrorException; use Cake\Error\BaseErrorHandler; +use Cake\Error\FatalErrorException; /** * Error Handler for Cake console. Does simple printing of the @@ -87,7 +87,7 @@ protected function _displayError($error, $debug) { $error['file'], $error['line'] ); - $message = __d('cake_console', "%s Error: %s\n", + $message = __d('cake_console', "%s Error: %s\n", $error['error'], $message ); diff --git a/lib/Cake/Error/ErrorHandler.php b/lib/Cake/Error/ErrorHandler.php index 6281fde0f6d..27014f05d75 100644 --- a/lib/Cake/Error/ErrorHandler.php +++ b/lib/Cake/Error/ErrorHandler.php @@ -127,6 +127,7 @@ protected function _displayError($error, $debug) { * * @param \Exception $exception The exception to display * @return void + * @throws \Exception When the chosen exception renderer is invalid. */ protected function _displayException($exception) { $renderer = App::classname($this->_options['exceptionRenderer'], 'Error');