Merge pull request #16024 from nextcloud/bugfix/15944/fix-return-code-user-provision
Forward OCSException to initiator
This commit is contained in:
commit
98244b5d6d
|
@ -346,6 +346,13 @@ class UsersController extends AUserData {
|
||||||
'app' => 'ocs_api',
|
'app' => 'ocs_api',
|
||||||
]);
|
]);
|
||||||
throw new OCSException($e->getHint(), 107);
|
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) {
|
} catch (\Exception $e) {
|
||||||
$this->logger->logException($e, [
|
$this->logger->logException($e, [
|
||||||
'message' => 'Failed addUser attempt with exception.',
|
'message' => 'Failed addUser attempt with exception.',
|
||||||
|
|
Loading…
Reference in New Issue