aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-09-01 19:00:48 +0000
committerChristopher Ng <chrng8@gmail.com>2022-09-15 22:56:18 +0000
commit8a15c629e25fbad5148c64d4b1b3c9f0f8174a9f (patch)
tree14b91027159cd0cdbd9ac8b51bf4d7ee91129882 /apps/provisioning_api
parentb9cd65291a74adf18112014ccc0c6ecfaed64694 (diff)
downloadnextcloud-server-8a15c629e25fbad5148c64d4b1b3c9f0f8174a9f.tar.gz
nextcloud-server-8a15c629e25fbad5148c64d4b1b3c9f0f8174a9f.zip
Fix translation of user exists error server-side
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index 9bf05f4484d..e8b6fd0e8d9 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -350,7 +350,7 @@ class UsersController extends AUserData {
if ($this->userManager->userExists($userid)) {
$this->logger->error('Failed addUser attempt: User already exists.', ['app' => 'ocs_api']);
- throw new OCSException('User already exists', 102);
+ throw new OCSException($this->l10nFactory->get('provisioning_api')->t('User already exists'), 102);
}
if ($groups !== []) {