summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index 2f44b746..90a4c464 100644
--- a/index.php
+++ b/index.php
@@ -2,4 +2,8 @@
require __DIR__.'/app/common.php';
-$container['router']->dispatch($_SERVER['REQUEST_URI'], isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
+try {
+ $container['router']->dispatch($_SERVER['REQUEST_URI'], isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
+} catch (Exception $e) {
+ echo 'Internal Error: '.$e->getMessage();
+}