summaryrefslogtreecommitdiffstats
path: root/ocs/v1.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-11-18 10:29:51 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-16 17:35:42 +0100
commit00f135d320fecee402c6b3a72cd9103b00750303 (patch)
tree75dcc29c0c1ab4c58b50d5534f969cc78c1a8ddd /ocs/v1.php
parentb0c1460a1d7d71cb752637b42154cd515c2b489e (diff)
downloadnextcloud-server-00f135d320fecee402c6b3a72cd9103b00750303.tar.gz
nextcloud-server-00f135d320fecee402c6b3a72cd9103b00750303.zip
Die in OCS v1.php on exception
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'ocs/v1.php')
-rw-r--r--ocs/v1.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 5aec27ad981..79e74f20cdf 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -65,8 +65,10 @@ try {
} catch (MethodNotAllowedException $e) {
OC_API::setContentType();
OC_Response::setStatus(405);
-} catch (\OC\OCS\Exception $ex) {
+ exit();
+} catch (Exception $ex) {
OC_API::respond($ex->getResult(), OC_API::requestedFormat());
+ exit();
}
/*