[stable16] Forward OCSException to initiator (#16191)
[stable16] Forward OCSException to initiator
This commit is contained in:
commit
af901a8509
|
@ -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.',
|
||||
|
|
Loading…
Reference in New Issue