Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit b828515

Browse files
authored
Merge pull request #786 from FabianScheidt/error-handling-documentation
2 parents 349c261 + dba8615 commit b828515

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/client.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ Known compatible loggers are:
6363
+ [Bunyan](https://www.npmjs.com/package/bunyan)
6464
+ [Pino](https://www.npmjs.com/package/pino)
6565

66+
67+
### Note On Error Handling
68+
69+
The client is an `EventEmitter`. If you don't register an error handler and
70+
e.g. a connection error occurs, Node.js will print a stack trace and exit the
71+
process ([reference](https://nodejs.org/api/events.html#error-events)).
72+
6673
## Connection management
6774

6875
As LDAP is a stateful protocol (as opposed to HTTP), having connections torn

0 commit comments

Comments
 (0)