Error catching in UI

This commit is contained in:
2022-03-25 16:36:58 -03:00
parent 4ea5c6de3e
commit 8b86560973

View File

@ -1,7 +1,12 @@
<?php <?php
require_once implode(DIRECTORY_SEPARATOR, [ try {
dirname(__DIR__), require_once implode(DIRECTORY_SEPARATOR, [
'setup', dirname(__DIR__),
'app.php' 'setup',
]); 'app.php'
$app->run(); ]);
$app->run();
} catch (Error | Exception $e) {
error_log($e);
throw $e;
}