|
|
@@ -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
|
|
|
@@ -185,11 +185,7 @@ abstract class BaseErrorHandler {
|
|
|
];
|
|
|
$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;
|
|
|
}
|
|
|
|