aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-28 21:25:51 +0200
committern-peugnet <n.peugnet@free.fr>2020-04-28 21:25:51 +0200
commit1619c194a32c1496f9015a491f5fa9dff350d47e (patch)
treeeb88861b02820ee43104e822603293ebf23c58bb /index.php
parent3ba521e5d60a05510aa97d826215b7660d3dcb59 (diff)
downloadwcms-1619c194a32c1496f9015a491f5fa9dff350d47e.tar.gz
wcms-1619c194a32c1496f9015a491f5fa9dff350d47e.zip
fix: never catch LogicExceptions except in index
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index f4e3321..49974f7 100644
--- a/index.php
+++ b/index.php
@@ -7,7 +7,7 @@ require('./vendor/autoload.php');
try {
Wcms\Logger::init('w_error.log', 2);
-} catch (Throwable $e) {
+} catch (RuntimeException $e) {
die('Unable to init logs: ' . $e->getMessage());
}