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>
This commit is contained in:
Morris Jobke 2018-11-01 22:27:54 +01:00
parent 35e3d40e80
commit affdb0e4d1
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 1 additions and 1 deletions

View File

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