Changed $woops to $whoops
This commit is contained in:
parent
d7a121ac4a
commit
388e4b5e87
1 changed files with 4 additions and 4 deletions
|
@ -43,15 +43,15 @@ $environment = 'development';
|
|||
/**
|
||||
* Register the error handler
|
||||
*/
|
||||
$woops = new \Whoops\Run;
|
||||
$whoops = new \Whoops\Run;
|
||||
if ($environment !== 'production') {
|
||||
$woops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
} else {
|
||||
$woops->pushHandler(function($e){
|
||||
$whoops->pushHandler(function($e){
|
||||
echo 'Friendly error page and send an email to the developer';
|
||||
});
|
||||
}
|
||||
$woops->register();
|
||||
$whoops->register();
|
||||
|
||||
throw new \Exception;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue