diff --git a/bin/extractPadData.js b/bin/extractPadData.js index 18f1f76c1..f79b964af 100644 --- a/bin/extractPadData.js +++ b/bin/extractPadData.js @@ -22,7 +22,15 @@ async.series([ // load npm function(callback) { npm.load({}, function(er) { - callback(er) + if(er) + { + console.error("Could not load NPM: " + er) + process.exit(1); + } + else + { + callback(); + } }) }, // load modules