ソースを参照

Forward OCSException to initiator

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v17.0.0beta1
Daniel Kesselberg 4年前
コミット
4177653e99
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更8行の追加1行の削除
  1. 8
    1
      apps/provisioning_api/lib/Controller/UsersController.php

+ 8
- 1
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.',

読み込み中…
キャンセル
保存