Merge pull request #25947 from nextcloud/fix/provisioning_api/logger
Fixed error after merge in UsersController
This commit is contained in:
commit
b1ca746395
|
@ -446,11 +446,12 @@ class UsersController extends AUserData {
|
|||
);
|
||||
throw $e;
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$this->logger->logException($e, [
|
||||
'message' => 'Failed addUser attempt with invalid argument exeption.',
|
||||
'level' => ILogger::ERROR,
|
||||
'app' => 'ocs_api',
|
||||
]);
|
||||
$this->logger->error('Failed addUser attempt with invalid argument exeption.',
|
||||
[
|
||||
'app' => 'ocs_api',
|
||||
'exception' => $e,
|
||||
]
|
||||
);
|
||||
throw new OCSException($e->getMessage(), 101);
|
||||
} catch (\Exception $e) {
|
||||
$this->logger->error('Failed addUser attempt with exception.',
|
||||
|
|
Loading…
Reference in New Issue