Permalink
Browse files

Minor change

  • Loading branch information...
1 parent 0600b3e commit f3057b0f038ab8491da9531d51ccc37b6790b7aa @jrcryer jrcryer committed Jul 27, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 tasks/lib/phpmd.coffee
View
@@ -47,9 +47,10 @@ exports.init = (grunt) ->
cmdOptions = maxBuffer: config.maxBuffer
exec cmd, cmdOptions, (err, stdout, stderr) ->
grunt.log.write stdout if stdout
- if err
- # As documented on # http://phpmd.org/documentation/index.html#exit-codes
- grunt.fatal err if err.code isnt 2
+
+ # As documented on # http://phpmd.org/documentation/index.html#exit-codes
+ grunt.fatal stdout if err and err.code isnt 2
+
done()
exports

0 comments on commit f3057b0

Please sign in to comment.