From 5cf4eea09ec1a0518bd31f7de7856d5646fe041f Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 11 Jan 2019 13:02:37 +0200 Subject: [PATCH] Remove debug backtrace and die when session fails to start --- system/src/Grav/Framework/Session/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Framework/Session/Session.php b/system/src/Grav/Framework/Session/Session.php index edadff282..823800f88 100644 --- a/system/src/Grav/Framework/Session/Session.php +++ b/system/src/Grav/Framework/Session/Session.php @@ -193,7 +193,7 @@ class Session implements SessionInterface if (!$success) { $last = error_get_last(); $error = $last ? $last['message'] : 'Unknown error'; - debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);die(); + throw new \RuntimeException('Failed to start session: ' . $error, 500); }