mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Whoops error handler for debug users.
This commit is contained in:
parent
3d0e26cf63
commit
9755e8b775
2 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,15 @@ define('TOR_TYPE_SILVER', 2);
|
|||
define('GUEST_UID', -1);
|
||||
define('BOT_UID', -746);
|
||||
|
||||
/**
|
||||
* Whoops error handler
|
||||
*/
|
||||
if (DBG_USER) {
|
||||
$whoops = new \Whoops\Run;
|
||||
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
|
||||
$whoops->register();
|
||||
}
|
||||
|
||||
/**
|
||||
* Database
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue