Browse Source

Log the previous exception during hard failure

* otherwise the exception that was caused by the template is logged

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Morris Jobke 5 years ago
parent
commit
affdb0e4d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.php

+ 1 - 1
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);
 }