[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Daniel Pittman
daniel at puppetlabs.com
Tue May 10 08:17:26 UTC 2011
The following commit has been merged in the experimental branch:
commit eeb82361de00f86f0840c2fcdd30a5e84c49232d
Author: Daniel Pittman <daniel at puppetlabs.com>
Date: Wed Apr 20 16:56:45 2011 -0700
maint: better error report for a missing version of a face.
We would report this:
Could not find version 1.0.0 of Puppet::Face[:version_matching, "2.0.0"]
That is not actually so helpful, not least because people wonder why it
reports a version number they didn't ask for. Instead, we just report the
requested name now.
diff --git a/lib/puppet/interface.rb b/lib/puppet/interface.rb
index 5c8ade7..b48f963 100644
--- a/lib/puppet/interface.rb
+++ b/lib/puppet/interface.rb
@@ -53,7 +53,7 @@ class Puppet::Interface
def [](name, version)
unless face = Puppet::Interface::FaceCollection[name, version]
if current = Puppet::Interface::FaceCollection[name, :current]
- raise Puppet::Error, "Could not find version #{version} of #{current}"
+ raise Puppet::Error, "Could not find version #{version} of #{name}"
else
raise Puppet::Error, "Could not find Puppet Face #{name.inspect}"
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list