From 8b86560973e2d655c395f6f948a78056bacf59d8 Mon Sep 17 00:00:00 2001 From: Aldarien Date: Fri, 25 Mar 2022 16:36:58 -0300 Subject: [PATCH] Error catching in UI --- ui/public/index.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ui/public/index.php b/ui/public/index.php index e6d2557..4ccf8a4 100644 --- a/ui/public/index.php +++ b/ui/public/index.php @@ -1,7 +1,12 @@ run(); +try { + require_once implode(DIRECTORY_SEPARATOR, [ + dirname(__DIR__), + 'setup', + 'app.php' + ]); + $app->run(); +} catch (Error | Exception $e) { + error_log($e); + throw $e; +}