]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: don't throw exceptions in the wrapper, errors are handled in the code. neverthe...
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 13 Sep 2013 17:27:07 +0000 (19:27 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 27 Sep 2013 11:34:16 +0000 (13:34 +0200)
apps/user_ldap/lib/ldap.php

index ee2e336cc95793e61bf188d2ab4f48364b743a75..b63e969912a129515f7f5977e3c1b613229f5c2e 100644 (file)
@@ -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);
                                }
                        }
                }