|
|
@@ -17,8 +17,8 @@ namespace Cake\Error;
|
|
|
use Cake\Core\Configure;
|
|
|
use Cake\Error\Debugger;
|
|
|
use Cake\Log\Log;
|
|
|
-use Cake\Routing\Router;
|
|
|
use Cake\Network\Exception\InternalErrorException;
|
|
|
+use Cake\Routing\Router;
|
|
|
|
|
|
/**
|
|
|
* Base error handler that provides logic common to the CLI + web
|
|
|
@@ -184,6 +184,7 @@ abstract class BaseErrorHandler {
|
|
|
'error' => 'Fatal Error',
|
|
|
];
|
|
|
$this->_logError(LOG_ERR, $data);
|
|
|
+
|
|
|
$this->handleException(new FatalErrorException($description, 500, $file, $line));
|
|
|
return true;
|
|
|
}
|