wecodemore / grunt-githooks

A Grunt plugin to help bind Grunt tasks to Git hooks
https://npmjs.org/package/grunt-githooks
MIT License
317 stars 24 forks source link

Log both err and stderr #26

Closed ryanfitzer closed 10 years ago

ryanfitzer commented 10 years ago

Had an issue when the repo was moved to a new machine and the cwd option was no longer valid. While err triggered the if condition, stderr was empty, so nothing was logged to notify me what the issue was.

My suggestion is to log both err and stderr in "node.js.hb".

franz-josef-kaiser commented 10 years ago

I already mentioned the problem of the hard coded cwd in #24 . Would you mind sending a quick PR (on a separate branch) to illustrate your suggestion? Thanks in advance!