diff options
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/remote.php b/remote.php index a14ff6ac308..d90bb2d8ee5 100644 --- a/remote.php +++ b/remote.php @@ -77,12 +77,10 @@ function handleException($e) { } if ($e instanceof RemoteException) { // we shall not log on RemoteException - OC_Response::setStatus($e->getCode()); - OC_Template::printErrorPage($e->getMessage()); + OC_Template::printErrorPage($e->getMessage(), '', $e->getCode()); } else { \OC::$server->getLogger()->logException($e, ['app' => 'remote']); - OC_Response::setStatus($statusCode); - OC_Template::printExceptionErrorPage($e); + OC_Template::printExceptionErrorPage($e, $statusCode); } } } |