ickymettle/knife-spork — comment on commit e362b95af533987add2a2322b2819090ab540ab3
File:  line 0
By jonlives:

Could you please add a general exception catcher as well, after the more specific ones? The reason for this is that the default chef exception handler will "exit 1" if an exception occurs, failing the promote or whatever (This would encompass things like the http host not being valid, which isn't currently specifically rescued). In cases like this we don't actually want that to happen, but we *do* want the exception to be shown. What I've done for irccat and graphite is something similar to this:

rescue Exception => msg
puts "Something went wrong with sending to irccat: (#{msg})"
end