Commit f04ea7c
committed
minor symfony#52498 [Ldap] Set exception code to ldap error number (johannes85)
This PR was merged into the 6.4 branch.
Discussion
----------
[Ldap] Set exception code to ldap error number
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| License | MIT
To be conistent with symfony@db46f3b, also add the LDAP error number to the exception in this case.
This is especially useful to perform a reconnect for long running php processes without doing something like this: ```if(str_contains($ex->getMessage(), 'LDAP error was [-1]')) {```
Or to check for a ```[32] No such object``` error.
Commits
-------
aa20487 Set exception code to ldap error number1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments