浏览代码

Merge pull request #16024 from nextcloud/bugfix/15944/fix-return-code-user-provision

Forward OCSException to initiator
tags/v17.0.0beta1
Roeland Jago Douma 4 年前
父节点
当前提交
98244b5d6d
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      apps/provisioning_api/lib/Controller/UsersController.php

+ 8
- 1
apps/provisioning_api/lib/Controller/UsersController.php 查看文件

@@ -339,13 +339,20 @@ class UsersController extends AUserData {

return new DataResponse(['id' => $userid]);

} 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.',

正在加载...
取消
保存