From 93942e792dcf8d54c1a4b544ddfbb0d39e98bb74 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 13 Jul 2016 16:20:43 -0700 Subject: [PATCH] Also conert imap errors in createConnectionPromise --- packages/nylas-core/imap-connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nylas-core/imap-connection.js b/packages/nylas-core/imap-connection.js index 628fd27da..2b002e048 100644 --- a/packages/nylas-core/imap-connection.js +++ b/packages/nylas-core/imap-connection.js @@ -223,7 +223,7 @@ class IMAPConnection extends EventEmitter { }; onErrored = (error) => { returned = true; - reject(error); + reject(convertImapError(error)); }; this._imap.once('error', onErrored);