summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-03-09 16:17:17 -0800
committerMatt Robinson <matt@puppetlabs.com>2011-03-09 16:52:08 -0800
commit285c4cc4b056b9c4990738c3d479d1a8993cf959 (patch)
treee086ed1a5f1637f2c0bb521f26b9906eab6bf35c /lib/puppet/util/rdoc/code_objects.rb
parenteae17c3cba159d895e5ec2e87e4abe8c125a9562 (diff)
downloadpuppet-285c4cc4b056b9c4990738c3d479d1a8993cf959.tar.gz
puppet-285c4cc4b056b9c4990738c3d479d1a8993cf959.tar.xz
puppet-285c4cc4b056b9c4990738c3d479d1a8993cf959.zip
(#5392) Give a better error when realizing a non-existant resource
You can reproduce the error with a simple manifest Bogus_type <| title == 'foo' |> We used to fail because find_resource_type returned nil and we never checked if it was nil before calling methods on it. Reviewed-by: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions