Also conert imap errors in createConnectionPromise

This commit is contained in:
Ben Gotow 2016-07-13 16:20:43 -07:00
parent 8c33c4976f
commit 93942e792d

View file

@ -223,7 +223,7 @@ class IMAPConnection extends EventEmitter {
};
onErrored = (error) => {
returned = true;
reject(error);
reject(convertImapError(error));
};
this._imap.once('error', onErrored);