diff options
author | Luke Kanies <luke@madstop.com> | 2008-08-04 13:52:55 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-08-04 13:52:55 -0500 |
commit | 93fd55fdaa409020f18001ac436ddad9b6c491e4 (patch) | |
tree | c0212c473116c3f14696cead03c1aa3826dbabef /lib/puppet | |
parent | 6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e (diff) | |
download | puppet-93fd55fdaa409020f18001ac436ddad9b6c491e4.tar.gz puppet-93fd55fdaa409020f18001ac436ddad9b6c491e4.tar.xz puppet-93fd55fdaa409020f18001ac436ddad9b6c491e4.zip |
Enhancing formatting errors with class and format.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/network/format.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/network/format.rb b/lib/puppet/network/format.rb index 7eb2a632f..a4515e39f 100644 --- a/lib/puppet/network/format.rb +++ b/lib/puppet/network/format.rb @@ -31,12 +31,12 @@ class Puppet::Network::Format def intern(klass, text) return klass.send(intern_method, text) if klass.respond_to?(intern_method) - raise NotImplementedError + raise NotImplementedError, "%s can not intern instances from %s" % [klass, mime] end def intern_multiple(klass, text) return klass.send(intern_multiple_method, text) if klass.respond_to?(intern_multiple_method) - raise NotImplementedError + raise NotImplementedError, "%s can not intern multiple instances from %s" % [klass, mime] end def mime=(mime) @@ -45,13 +45,13 @@ class Puppet::Network::Format def render(instance) return instance.send(render_method) if instance.respond_to?(render_method) - raise NotImplementedError + raise NotImplementedError, "%s can not render instances to %s" % [instance.class, mime] end def render_multiple(instances) # This method implicitly assumes that all instances are of the same type. return instances[0].class.send(render_multiple_method, instances) if instances[0].class.respond_to?(render_multiple_method) - raise NotImplementedError + raise NotImplementedError, "%s can not intern multiple instances to %s" % [instances[0].class, mime] end def supported?(klass) |