From a1aff3e8a1b956e0e42ceca2b6c7b6233b195432 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 13 Sep 2013 19:27:07 +0200 Subject: [PATCH] LDAP: don't throw exceptions in the wrapper, errors are handled in the code. nevertheless, log unexpected errors --- apps/user_ldap/lib/ldap.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/user_ldap/lib/ldap.php b/apps/user_ldap/lib/ldap.php index ee2e336cc9..b63e969912 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); } } }