Skip to content
Permalink
Browse files

Do not hinder fatal error causes when debug = false.

In the past it was impossible to use custom exception handlers to
log the cause of fatal errors. Removing this hindrance makes for
happier reporting tools
  • Loading branch information...
lorenzo committed Aug 31, 2014
1 parent 919b740 commit dab3f67986662cac606f054213509fbdd7a472d8
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/Error/BaseErrorHandler.php
@@ -184,12 +184,7 @@ public function handleFatalError($code, $description, $file, $line) {
'error' => 'Fatal Error',
];
$this->_logError(LOG_ERR, $data);
if (Configure::read('debug')) {
$this->handleException(new FatalErrorException($description, 500, $file, $line));
return true;
}
$this->handleException(new InternalErrorException());
$this->handleException(new FatalErrorException($description, 500, $file, $line));
return true;
}

0 comments on commit dab3f67

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