summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-27 21:28:32 -0600
committerLuke Kanies <luke@madstop.com>2007-11-27 21:28:32 -0600
commit6b2c0d8016e39589f6dd9fa50605fb03e31965a3 (patch)
treee8a341184b57d3358fa70292acf81e4dd07612a9 /lib/puppet
parent1b2142b7dd9ef7bea2c4591e512feef230ecc072 (diff)
downloadpuppet-6b2c0d8016e39589f6dd9fa50605fb03e31965a3.tar.gz
puppet-6b2c0d8016e39589f6dd9fa50605fb03e31965a3.tar.xz
puppet-6b2c0d8016e39589f6dd9fa50605fb03e31965a3.zip
Fixing the error message as requested in #893.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/ast/definition.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast/definition.rb b/lib/puppet/parser/ast/definition.rb
index 1cdaa6431..3d6d6188c 100644
--- a/lib/puppet/parser/ast/definition.rb
+++ b/lib/puppet/parser/ast/definition.rb
@@ -80,9 +80,7 @@ class Puppet::Parser::AST
if defvalue
warnonce "%s is a metaparam; this value will inherit to all contained resources" % arg
else
- raise Puppet::ParseError,
- "%s is a metaparameter; please choose another name" %
- name
+ raise Puppet::ParseError, "%s is a metaparameter; please choose another parameter name in the %s definition" % [arg, self.classname]
end
end
end