Skip to content

Commit c499319

Browse files
authored
Set exception code to ldap error number
1 parent ad9325c commit c499319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)