Skip to content

Commit aa20487

Browse files
authored
Set exception code to ldap error number
1 parent caf41fc commit aa20487

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Ldap/Adapter/ExtLdap

1 file changed

+1
-1
lines changed

src/Symfony/Component/Ldap/Adapter/ExtLdap/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function execute(): CollectionInterface
110110
$this->resetPagination();
111111
}
112112

113-
throw new LdapException(sprintf('Could not complete search with dn "%s", query "%s" and filters "%s".%s.', $this->dn, $this->query, implode(',', $this->options['filter']), $ldapError));
113+
throw new LdapException(sprintf('Could not complete search with dn "%s", query "%s" and filters "%s".%s.', $this->dn, $this->query, implode(',', $this->options['filter']), $ldapError), $errno);
114114
}
115115

116116
$this->results[] = $search;

0 commit comments

Comments
 (0)