Issue #21117 has been reported by Charlie Sharpsteen.

----------------------------------------
Feature #21117: Improve error message for illegal hash keys
https://projects.puppetlabs.com/issues/21117

* Author: Charlie Sharpsteen
* Status: Unreviewed
* Priority: Normal
* Assignee: Henrik Lindberg
* Category: parser
* Target version: 
* Affected Puppet version: 3.2.1
* Keywords: 
* Branch: 
----------------------------------------
Currently using an illegal hash key, such as a resource reference, results in a 
rather cryptic error message:

<pre>
puppet apply -e '$my_var = {Some_thing => "hai"}'
Error: Could not parse for environment production: Syntax error at 
'Some_thing'; expected '}' at line 1 on node puppetmaster.boxnet
Error: Could not parse for environment production: Syntax error at 
'Some_thing'; expected '}' at line 1 on node puppetmaster.boxnet
</pre>

As discussed in #14704, this could be dramatically improved to something like 
"Illegal hash key – a QualifiedReference is not a valid hash key".


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to