Skip to content

Commit

Permalink
Fixing variable name used to set error handlers.
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed Sep 24, 2012
1 parent d3ba970 commit fe5b49e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Console/ShellDispatcher.php
Expand Up @@ -160,11 +160,11 @@ public function setErrorHandlers() {
$errorHandler = new ConsoleErrorHandler();
if (empty($error['consoleHandler'])) {
$error['consoleHandler'] = array($errorHandler, 'handleError');
Configure::write('error', $error);
Configure::write('Error', $error);
}
if (empty($exception['consoleHandler'])) {
$exception['consoleHandler'] = array($errorHandler, 'handleException');
Configure::write('exception', $exception);
Configure::write('Exception', $exception);
}
set_exception_handler($exception['consoleHandler']);
set_error_handler($error['consoleHandler'], Configure::read('Error.level'));
Expand Down

0 comments on commit fe5b49e

Please sign in to comment.