Added error-handling for npm

pull/1330/head
mluto 2013-01-06 20:20:46 +01:00
parent 7ec7ccc402
commit e7d9359737
1 changed files with 9 additions and 1 deletions

View File

@ -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