diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-13 19:27:07 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-09-27 13:34:16 +0200 |
commit | a1aff3e8a1b956e0e42ceca2b6c7b6233b195432 (patch) | |
tree | e2beb920cb40b92ebc12d3c950951bc67bb98139 /apps | |
parent | 81cf4a22efb4dd7303a3aa3451e29992562b19f0 (diff) | |
download | nextcloud-server-a1aff3e8a1b956e0e42ceca2b6c7b6233b195432.tar.gz nextcloud-server-a1aff3e8a1b956e0e42ceca2b6c7b6233b195432.zip |
LDAP: don't throw exceptions in the wrapper, errors are handled in the code. nevertheless, log unexpected errors
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/ldap.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/ldap.php b/apps/user_ldap/lib/ldap.php index ee2e336cc95..b63e969912a 100644 --- a/apps/user_ldap/lib/ldap.php +++ b/apps/user_ldap/lib/ldap.php @@ -152,9 +152,11 @@ class LDAP implements ILDAPWrapper { } else if ($errorCode === 10) { //referrals, we switch them off, but then there is AD :) } else { - throw new \Exception('LDAP error '.$errorMsg.' (' . - $errorCode.') after calling '.$this->curFunc. - ' with arguments '.print_r($this->curArgs, true)); + \OCP\Util::writeLog('user_ldap', + 'LDAP error '.$errorMsg.' (' . + $errorCode.') after calling '. + $this->curFunc, + \OCP\Util::DEBUG); } } } |