Issue #3187 has been reported by Tim Stoop.
----------------------------------------
Bug #3187: Obscure error message when a = should be a => in a selector
http://projects.reductivelabs.com/issues/3187
Author: Tim Stoop
Status: Unreviewed
Priority: Low
Assigned to:
Category: error reporting
Target version:
Affected version: 0.25.4
Keywords:
Branch:
Hi all,
(Not sure if this is a bug or a refactor, I would consider it a bug myself. Or
wishlist.)
When I make a syntax error in a selector, like so:
<pre>$target_service = $target ? {
$environment = "/etc/nagios3/${environment}/${fqdn}.cfg",
default = "/etc/nagios3/${environment}/${target}.cfg"
}</pre>
I get the error:
<pre>Syntax error at '='; expected '}'</pre>
Which made me overlook the obvious error (my = should be a =>). It would
probably make things easier if puppet would recognise this mistake, since I
imagine it a fairly common occurance, and adjust the error message accordingly.
--
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://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.