From affdb0e4d1b339547c15292a7323b0708d8fb07c Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 1 Nov 2018 22:27:54 +0100 Subject: [PATCH] Log the previous exception during hard failure * otherwise the exception that was caused by the template is logged Signed-off-by: Morris Jobke --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ba83054ccc..7eabe64c16 100644 --- a/index.php +++ b/index.php @@ -78,7 +78,7 @@ try { print("Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.\n"); print("More details can be found in the webserver log.\n"); - throw $e; + throw $ex; } OC_Template::printExceptionErrorPage($ex, 500); }