opscode/chef — pull request #1256 by danielsdeleo (2014-02-07 16:53:02+00:00)
Title: Localize rescues in Recipe method_missing DSL

A change in the Recipe DSL included overzealous gobbling of NoMethodError, such that an invalid method name _inside_ a resource would result in a customized NoMethodError saying that the resource name itself was invalid. For example:

```
================================================================================
Recipe Compile Error in /private/tmp/error_message_repro/repro/recipes/default.rb
================================================================================

NoMethodError
-------------
No resource or method named `file' for `Chef::Recipe "default"'

Cookbook Trace:
---------------
/private/tmp/error_message_repro/repro/recipes/default.rb:1:in `from_file'

Relevant File Content:
----------------------
/private/tmp/error_message_repro/repro/recipes/default.rb:

1>> file "/tmp/whatever" do
2: no_method_here
3: end
4:
```