log ocs exceptions

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/3297/head
Robin Appelman 7 years ago
parent a359d0d7c7
commit e7e614d801
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9

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

Loading…
Cancel
Save