Permalink
Browse files

Fixing variable name used to set error handlers.

  • Loading branch information...
renan committed Sep 24, 2012
1 parent d3ba970 commit fe5b49e6eba930867adade4ac88125d8bf319d3f
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/ShellDispatcher.php
@@ -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'));

0 comments on commit fe5b49e

Please sign in to comment.