removed dies from error bootstraper.

This commit is contained in:
Taylor Otwell
2011-09-28 21:43:37 -05:00
parent 9c319ba0fc
commit abd23c9610

View File

@@ -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)
{ {
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']));
} }
}); });