Changed $woops to $whoops

This commit is contained in:
HamZa 2014-12-08 11:42:21 +01:00
parent 60e96fb592
commit 0bf3f2d3ce

View file

@ -43,15 +43,15 @@ $environment = 'development';
/** /**
* Register the error handler * Register the error handler
*/ */
$woops = new \Whoops\Run; $whoops = new \Whoops\Run;
if ($environment !== 'production') { if ($environment !== 'production') {
$woops->pushHandler(new \Whoops\Handler\PrettyPageHandler); $whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
} else { } else {
$woops->pushHandler(function($e){ $whoops->pushHandler(function($e){
echo 'Friendly error page and send an email to the developer'; echo 'Friendly error page and send an email to the developer';
}); });
} }
$woops->register(); $whoops->register();
throw new \Exception; throw new \Exception;