output stderror instead of stdout to show detailed errors when spawnCasperJS fails

This commit is contained in:
Roy van Kaathoven 2015-06-12 20:37:23 +02:00
parent 464c16f2aa
commit d23b67737b

View File

@ -506,7 +506,7 @@ var _ = require('lodash'),
}, function (error, result, code) {
/*jshint unused:false*/
if (error) {
grunt.fail.fatal(result.stdout);
grunt.fail.fatal(result.stderr);
}
grunt.log.writeln(result.stdout);
done();