I have a wrapper cookbook which use custom resource
sensu_gem from cookbook chef-sensu. I want to catch its Exception but cannot.
The code is.
begin sensu_gem "pg" do compile_time true if respond_to?(:compile_time) end rescue Exception => e puts e.message.to_s end
It worked fine with built-in Chef resource