Die in OCS v1.php on exception

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Vincent Petry 2016-11-18 10:29:51 +01:00 committed by Lukas Reschke
parent b0c1460a1d
commit 00f135d320
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

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