diff --git a/ocs/v1.php b/ocs/v1.php index 5aec27ad981c3b20e13f2506a42092c3e4cfae76..79e74f20cdf44615215c32773415c0d3790d8fb4 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(); } /*