From 3b49e132ab8cde1d73da7c68eca3121e2fbfaf2a Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 3 Feb 2016 18:03:11 -0800 Subject: [PATCH] fix(errors): onerror contains an error.. --- src/nylas-env.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nylas-env.coffee b/src/nylas-env.coffee index ada623bd7..77dc1403f 100644 --- a/src/nylas-env.coffee +++ b/src/nylas-env.coffee @@ -235,7 +235,7 @@ class NylasEnvConstructor extends Model [message, url, line, column, originalError] = args {line, column} = mapSourcePosition({source: url, line, column}) originalError.stack = convertStackTrace(originalError.stack, sourceMapCache) - @reportError(originalerror, {url, line, column}) + @reportError(originalError, {url, line, column}) Promise.onPossiblyUnhandledRejection (error, promise) => error.stack = convertStackTrace(error.stack, sourceMapCache)