node-imap icon indicating copy to clipboard operation
node-imap copied to clipboard

Question about error events

Open toptensoftware opened this issue 3 years ago • 0 comments

Thanks for this excellent package. I have a question about error handling...

What the difference between the 'error' event emitted from the Imap object vs the 'error' event emitted by the object returned from fetch()?

In testing I'm finding that if I disconnect the network just before making a fetch request, then I'll (eventually) get an error on the Imap object, but the fetch request doesn't generate any error events.

Some clarification on correct error handling in this regard would be much appreciated.

toptensoftware avatar Jun 10 '22 13:06 toptensoftware