summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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