]> khamidou — GitHub mirrors - electron.git/commitdiff
e -> error
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 19 Jan 2016 23:11:55 +0000 (15:11 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Thu, 21 Jan 2016 16:32:21 +0000 (09:32 -0700)
atom/browser/lib/rpc-server.js
atom/common/lib/init.js

index e9c192aef324639bc35ce2fd24a32d44d95c5e59..b3e6ddc78322d0c7305b6a8c802c82dfe73612f2 100644 (file)
@@ -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);
   }
 };
 
index 1bfacb34a8abbc7e4ce13c089f22337a3bec4cb7..a4766c4a7f961e6786326fae06c8c7c87ac1bcc5 100644 (file)
@@ -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);
     }
   }