Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor change

  • Loading branch information...
commit f3057b0f038ab8491da9531d51ccc37b6790b7aa 1 parent 0600b3e
James Cryer jrcryer authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 tasks/lib/phpmd.coffee
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.