mirror of
https://github.com/nextcloud/server.git
synced 2026-03-26 20:33:55 -04:00
Merge pull request #2721 from nextcloud/ocs-die-on-exception
[downstream] Die in OCS v1.php on exception
This commit is contained in:
commit
4f79d2ff0d
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue