]> source.dussan.org Git - nextcloud-server.git/commitdiff
first log the exception
authorThomas Müller <thomas.mueller@tmit.eu>
Sun, 15 Sep 2013 19:20:22 +0000 (21:20 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Sun, 15 Sep 2013 19:20:22 +0000 (21:20 +0200)
index.php

index 90fd3efcc96e060e5f31875e6b7f12e03791e3f6..40063fa6e05b44305807b88926d331e6477b5bba 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -31,7 +31,7 @@ try {
 
 } catch (Exception $ex) {
        //show the user a detailed error page
-       OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
        \OCP\Util::writeLog('index', $ex->getMessage(), \OCP\Util::FATAL);
+       OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
        OC_Template::printExceptionErrorPage($ex);
 }