mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 06:06:16 +02:00
Remove debug backtrace and die when session fails to start
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user