pocesar/grunt-mocha-istanbul

grunt.until.spawn impl causing issue

Opened this issue · 2 comments

file: tasks/index.js
line #: 324
problem: the err object returned by the callback is defined as object with no keys. Therefore, should change the if statement from if(err) { to if (Object.keys(err).length>0) {

if (!options.dryRun) {
grunt.util.spawn({
cmd: options.nodeExec,
args: args,
opts: {
env: process.env,
cwd: options.cwd,
stdio: options.quiet ? 'ignore' : 'inherit'
}
}, function (err, result) {
console.log('Error is:'+JSON.stringify(err));
if (err) {
grunt.log.error(result);
done(false);
return;
}

I didn't understand the problem, could you rewrite your OP please?