fix wrong variable name for bin/6to5-node kexec catch

This commit is contained in:
Sebastian McKenzie 2014-12-13 17:56:17 +11:00
parent 0d9e6aca67
commit 4c1ad04b2c

View File

@ -51,9 +51,9 @@ process.argv.slice(2).forEach(function(arg){
try {
var kexec = require("kexec");
kexec(process.argv[0], args);
} catch(e) {
if (e.code !== "MODULE_NOT_FOUND") throw err;
} catch (err) {
if (err.code !== "MODULE_NOT_FOUND") throw err;
var child_process = require("child_process");
var proc = child_process.spawn(process.argv[0], args, { stdio: "inherit" });
proc.on("exit", function (code, signal) {