Remove debug backtrace and die when session fails to start

This commit is contained in:
Matias Griese
2019-01-11 13:02:37 +02:00
parent f0cf4ed8ff
commit 5cf4eea09e

View File

@@ -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);
}