log ocs exceptions
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a359d0d7c7
commit
e7e614d801
|
@ -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…
Reference in New Issue