tweaking the error bootstrap file.
This commit is contained in:
parent
736351911f
commit
048c917ea5
|
@ -33,9 +33,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create the exception handler function. All of the handlers
|
* Create the exception handler function. All of the error handlers
|
||||||
* registered with PHP will call this handler when an error
|
* registered with PHP call this closure to keep the code D.R.Y.
|
||||||
* occurs so the code stays D.R.Y.
|
|
||||||
*/
|
*/
|
||||||
$handler = function($e) use ($formatter)
|
$handler = function($e) use ($formatter)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +71,9 @@
|
||||||
{
|
{
|
||||||
if ( ! is_null($error = error_get_last()))
|
if ( ! is_null($error = error_get_last()))
|
||||||
{
|
{
|
||||||
$handler(new \ErrorException($error['message'], $error['type'], 0, $error['file'], $error['line']));
|
extract($error, EXTR_SKIP);
|
||||||
|
|
||||||
|
$handler(new \ErrorException($message, $type, 0, $file, $line));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue