Skip to content

Commit

Permalink
tighter reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartvds committed Aug 8, 2013
1 parent 846c67b commit d3b09c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function (grunt) {
grunt.fail.warn('file does not exist ' + src);
return false;
}
grunt.log.writeln('run '.white + src.cyan);
grunt.log.writeln('-> '.cyan + 'executing ' + src.cyan);

//use spawn so we don't have to depend on process.exit();
var child = grunt.util.spawn({
Expand All @@ -52,10 +52,10 @@ module.exports = function (grunt) {
},
function (error, result, code) {
if (error) {
grunt.fail.warn('error'.red + ' ' + ('' + code).red);
grunt.fail.warn('-> '.cyan + 'error '.red + ('' + code).red + ' ' + src.cyan + ' (' + (Date.now() - loop) + 'ms)');
} else {
counter += 1;
grunt.log.writeln('ok '.white + (code !== 0 ? ('' + code).cyan : '') + '(' + (Date.now() - loop) + 'ms)');
grunt.log.writeln('-> '.cyan + 'completed ' + src.cyan + ' (' + (Date.now() - loop) + 'ms)');
}
callback(error);
});
Expand Down

0 comments on commit d3b09c5

Please sign in to comment.