Commit 41b96a45 authored by Aaron Harder's avatar Aaron Harder
Browse files

Merge branch 'master' into feature/ah/configuration-wizard-changes-2018-07

* master:
  adding projectId to erroring modules. fixing undefined output
  improving npm install fail message
parents aee3fccc 4d90398b
......@@ -126,7 +126,7 @@ module.exports=function(options){
builder.installModule(projectId, newOptions, function(err, result){
if(err){
errors=errors||[]; errors.push(err);
errors=errors||[]; errors.push(projectId + " : " + err);
}else{
console.log(c.red("Completed: "), result);
results.push(result);
......@@ -252,7 +252,7 @@ module.exports=function(options){
);
child.on("close", function(code){
if(code){cb("Problem installing NPM modules.");return;}
if(code){cb(`Problem installing NPM modules for ${pkgPath}`);return;}
cb(err,targetFolder);
});
......
......@@ -29,7 +29,8 @@ module.exports=function(args, cb){
if(cb){cb("Could not find Git URL for this project",details);return;}
return;
}else{
console.error(err,details);
console.error(err);
if(details){console.log(details)}
console.error("\n\nInstallation failed.");
if(cb){cb(err,details);return;}
......@@ -38,7 +39,7 @@ module.exports=function(args, cb){
}
}else{
console.log(c.red("\nHuzzah!") + " Blacklight module installed.");
console.log(details);
if(details){console.log(details);}
if(cb){cb(null,details);}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment