Error catching in API

This commit is contained in:
2022-03-25 15:04:42 -03:00
parent 2b3b475d91
commit f9076d3bac

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;
}