Add Whoops exception handler (nicer debug info in dev mode)

On production = no errors
This commit is contained in:
slawkens
2023-05-29 08:55:26 +02:00
parent 7690811da3
commit 7c2c88f780
7 changed files with 15 additions and 127 deletions

View File

@@ -141,8 +141,6 @@ if(!IS_CLI) {
define('ADMIN_URL', SERVER_URL . BASE_DIR . '/' . ADMIN_PANEL_FOLDER . '/');
//define('CURRENT_URL', BASE_URL . $_SERVER['REQUEST_URI']);
require SYSTEM . 'exception.php';
}
$autoloadFile = VENDOR . 'autoload.php';