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