theforeman/puppet-foreman — pull request #186 by domcleal (2014-05-01 07:48:12+00:00)
Title: fixes #3851 - increment error counter for non-resource Puppet errors

Test this by running the agent successfully once, then chmod -x node.rb, then `puppet agent --no-daemonize --onetime --usecacheonfailure --no-ignorecache -v` so it uses the catalog cache. You should see a new report with a failed status as well as successful resources (if applicable) and the host in error mode.

![screenshot from 2014-05-01 08 47 25](https://cloud.githubusercontent.com/assets/482089/2850644/e84e90be-d104-11e3-89a7-336063fb969d.png)
![screenshot from 2014-05-01 08 47 39](https://cloud.githubusercontent.com/assets/482089/2850645/eb392a82-d104-11e3-8b32-1032b3672ffd.png)