Fixed registration of error handlers.
This commit is contained in:
parent
4a6061ec60
commit
fbd25a443a
1 changed files with 6 additions and 6 deletions
|
@ -24,13 +24,13 @@ require_once 'vendor/autoload.php';
|
|||
|
||||
$errorHandler = new \Whoops\Run;
|
||||
$errorHandler->pushHandler(
|
||||
MSZ_DEBUG
|
||||
? (
|
||||
PHP_SAPI === 'cli'
|
||||
? new \Whoops\Handler\PlainTextHandler
|
||||
: new \Whoops\Handler\PrettyPageHandler
|
||||
)
|
||||
: (
|
||||
MSZ_DEBUG
|
||||
? new \Whoops\Handler\PrettyPageHandler
|
||||
: ($errorReporter = new WhoopsReporter)
|
||||
)
|
||||
);
|
||||
$errorHandler->register();
|
||||
|
||||
|
|
Loading…
Reference in a new issue