diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-06-20 18:04:52 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-06-20 18:04:52 +0200 |
commit | 4177653e99448ae4d40bf2214f2c4297bd33e624 (patch) | |
tree | 822a92bad80d89ac0d8137772e5287b9f94e4f38 /apps/provisioning_api/lib | |
parent | 452d7696ff7e663f1794742d9708bb62a2771097 (diff) | |
download | nextcloud-server-4177653e99448ae4d40bf2214f2c4297bd33e624.tar.gz nextcloud-server-4177653e99448ae4d40bf2214f2c4297bd33e624.zip |
Forward OCSException to initiator
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/UsersController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index b993188c97e..ce2215d9749 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -317,13 +317,20 @@ class UsersController extends AUserData { return new DataResponse(); - } catch (HintException $e ) { + } catch (HintException $e) { $this->logger->logException($e, [ 'message' => 'Failed addUser attempt with hint exception.', 'level' => ILogger::WARN, 'app' => 'ocs_api', ]); throw new OCSException($e->getHint(), 107); + } catch (OCSException $e) { + $this->logger->logException($e, [ + 'message' => 'Failed addUser attempt with ocs exeption.', + 'level' => ILogger::ERROR, + 'app' => 'ocs_api', + ]); + throw $e; } catch (\Exception $e) { $this->logger->logException($e, [ 'message' => 'Failed addUser attempt with exception.', |