summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-07 15:52:02 -0600
committerLuke Kanies <luke@madstop.com>2008-02-07 15:52:02 -0600
commit084d0fb6351ed54ff4c052cff20f21e89063620c (patch)
tree4389b3c70bb957c33408d66c11e7ba2769936d42 /lib
parentb293763f9ef2e134f18bb2c3fdaaaa502aa2c201 (diff)
downloadpuppet-084d0fb6351ed54ff4c052cff20f21e89063620c.tar.gz
puppet-084d0fb6351ed54ff4c052cff20f21e89063620c.tar.xz
puppet-084d0fb6351ed54ff4c052cff20f21e89063620c.zip
Adding more information to dependencies that do not resolve
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/metatype/metaparams.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/metatype/metaparams.rb b/lib/puppet/metatype/metaparams.rb
index b35adae66..9983c34d2 100644
--- a/lib/puppet/metatype/metaparams.rb
+++ b/lib/puppet/metatype/metaparams.rb
@@ -258,7 +258,7 @@ class Puppet::Type
@value.each do |value|
unless @resource.catalog.resource(*value)
description = self.class.direction == :in ? "dependency" : "dependent"
- raise Puppet::Error, "Could not find #{description} %s[%s]" % [value[0].to_s.capitalize, value[1]]
+ fail Puppet::Error, "Could not find #{description} %s[%s] for %s" % [value[0].to_s.capitalize, value[1], resource.ref]
end
end
end