Browse Source
log ocs exceptions
Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v12.0.0beta1
Robin Appelman
7 years ago
No account linked to committer's email address
1 changed files with
1 additions and
0 deletions
-
ocs/v1.php
|
|
@@ -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(); |
|
|
|
} |