Changed $woops to $whoops

This commit is contained in:
HamZa 2014-12-08 11:42:21 +01:00 committed by lubiana
parent a95e842c88
commit b4c3070007
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -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;