Skip to content

Commit 229dd31

Browse files
committed
More coverage around grunt output.
1 parent adcf4a1 commit 229dd31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/grunt/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ module.exports = function (sails) {
2626
child.stdout.on('data', function (consoleMsg) {
2727
sails.log.verbose('Grunt :: ' + consoleMsg);
2828
});
29+
child.stdout.on('error', function (consoleErr) {
30+
sails.log.error('Grunt :: ' + consoleErr);
31+
});
2932
child.stderr.on('data', function (consoleErr) {
3033
sails.log.error('Grunt :: ' + consoleErr);
3134
});
35+
child.stderr.on('error', function (consoleErr) {
36+
sails.log.error('Grunt :: ' + consoleErr);
37+
});
3238

3339
sails.log.verbose('Tracking new grunt child process...');
3440
sails.childProcesses.push(child);

0 commit comments

Comments
 (0)