Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

node-waf faillure: display in red + continue (instead of stopping)

	modified:   nmod
  • Loading branch information...
commit b376bc48903ce38d205c8c21acb97384511292e7 1 parent f0ea18e
@jeromeetienne authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 nmod
View
6 nmod
@@ -170,7 +170,7 @@ var utils = {
var cmdline = "(cd '"+dirName+"' && node-waf distclean configure build)"
var child = require('child_process').exec(cmdline, function (error, stdout, stderr){
if (error !== null) {
- process.stdout.write(tty_color.code("node-waf failed to build in "+dirName+"\n"));
+ process.stdout.write(tty_color.error("node-waf failed to build in "+dirName+"\n"));
process.stdout.write(stderr);
failureCb(error);
}else{
@@ -574,7 +574,7 @@ var nmod = function(cmdline, cmdopts){
if( typeof pkgJson !== "undefined" ){
require('fs').writeFileSync(dstDirname+"/package.json", JSON.stringify(pkgJson), "binary")
}
-
+
/**
* to install dependancies
*/
@@ -600,6 +600,8 @@ var nmod = function(cmdline, cmdopts){
// display for the user
process.stdout.write(tty_color.code(prefixStr+pkgName)+": native code built\n");
installDeps();
+ }, function(){
+ installDeps();
})
}else{
// install the dependancies
Please sign in to comment.
Something went wrong with that request. Please try again.