log ocs exceptions

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-02-06 14:46:52 +01:00
parent a359d0d7c7
commit e7e614d801
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ try {
} catch (\OC\User\LoginException $e) {
OC_API::respond(new OC_OCS_Result(null, \OCP\API::RESPOND_UNAUTHORISED, 'Unauthorised'));
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e);
OC_API::setContentType();
OC_OCS::notFound();
}