From 16b4b58de10fe04669b0bf9754c30d733b1f7df4 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 19 Jan 2016 15:11:55 -0800 Subject: [PATCH] e -> error --- atom/browser/lib/rpc-server.js | 2 +- atom/common/lib/init.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/lib/rpc-server.js b/atom/browser/lib/rpc-server.js index e9c192aef324..b3e6ddc78322 100644 --- a/atom/browser/lib/rpc-server.js +++ b/atom/browser/lib/rpc-server.js @@ -200,7 +200,7 @@ var callFunction = function(event, func, caller, args) { // them with the function name so it's easier to trace things like // `Error processing argument -1.` funcName = (ref = func.name) != null ? ref : "anonymous"; - throw new Error("Could not call remote function `" + funcName + "`. Check that the function signature is correct. Underlying error: " + e.message); + throw new Error("Could not call remote function `" + funcName + "`. Check that the function signature is correct. Underlying error: " + error.message); } }; diff --git a/atom/common/lib/init.js b/atom/common/lib/init.js index 1bfacb34a8ab..a4766c4a7f96 100644 --- a/atom/common/lib/init.js +++ b/atom/common/lib/init.js @@ -6,7 +6,7 @@ process.atomBinding = function(name) { try { return process.binding("atom_" + process.type + "_" + name); } catch (error) { - if (/No such module/.test(e.message)) { + if (/No such module/.test(error.message)) { return process.binding("atom_common_" + name); } }