Issue #3187 has been updated by Jesse Wolfe. Target version changed from Rowlf to queued
---------------------------------------- Bug #3187: Obscure error message when a = should be a => in a selector http://projects.puppetlabs.com/issues/3187 Author: Tim Stoop Status: Accepted Priority: Low Assigned to: Category: error reporting Target version: queued 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://projects.puppetlabs.com/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.
