Commit abd23c96 authored by Taylor Otwell's avatar Taylor Otwell

removed dies from error bootstraper.

parent 9c319ba0
...@@ -49,13 +49,11 @@ $handler = function($e) use ($formatter) ...@@ -49,13 +49,11 @@ $handler = function($e) use ($formatter)
*/ */
set_exception_handler(function($e) use ($handler) set_exception_handler(function($e) use ($handler)
{ {
//die(var_dump($e));
$handler($e); $handler($e);
}); });
set_error_handler(function($number, $error, $file, $line) use ($handler) set_error_handler(function($number, $error, $file, $line) use ($handler)
{ {
//die($error);
$handler(new \ErrorException($error, $number, 0, $file, $line)); $handler(new \ErrorException($error, $number, 0, $file, $line));
}); });
...@@ -63,7 +61,6 @@ register_shutdown_function(function() use ($handler) ...@@ -63,7 +61,6 @@ register_shutdown_function(function() use ($handler)
{ {
if ( ! is_null($error = error_get_last())) if ( ! is_null($error = error_get_last()))
{ {
//die($error['message']);
$handler(new \ErrorException($error['message'], $error['type'], 0, $error['file'], $error['line'])); $handler(new \ErrorException($error['message'], $error['type'], 0, $error['file'], $error['line']));
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment