mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
error handling in update profile from LDAP
added error message on InvalidArgumentException Signed-off-by: Marc Hefter <marchefter@gmail.com>
This commit is contained in:
parent
ebb0c53f9e
commit
eec5e702da
1 changed files with 7 additions and 1 deletions
|
|
@ -645,7 +645,13 @@ class User {
|
|||
.' for uid='.$this->uid.'', ['app' => 'user_ldap']);
|
||||
}
|
||||
}
|
||||
$accountManager->updateAccount($account); // may throw InvalidArgumentException
|
||||
try {
|
||||
$accountManager->updateAccount($account); // may throw InvalidArgumentException
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$this->logger->error('invalid data from LDAP: for uid='.$this->uid.''
|
||||
, ['app' => 'user_ldap', 'func' => 'updateProfile'
|
||||
, 'exception' => $e]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue