Skip to content

Conversation

djfarrelly
Copy link
Member

Purpose

Handle SMTPConnection errors gracefully. Fixes #287.

Notes

If an EventEmitter does not have at least one listener registered for the 'error' event, and an 'error' event is emitted, the error is thrown, a stack trace is printed, and the Node.js process exits. (source - Node.js official docs)

Node.js' event emitter will throw an error and exit the program
if the error event is not handled.
@djfarrelly djfarrelly added the bug label Mar 30, 2020
@djfarrelly djfarrelly merged commit 92da777 into master Mar 30, 2020
@djfarrelly djfarrelly deleted the fix/handle-smtp-connection-errors branch March 30, 2020 14:07
@djfarrelly djfarrelly added this to the 2.0.0 milestone Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unhandled 'error' event crashes maildev shortly after viewing email in gui
1 participant