Issue #13935 has been reported by Eric Shamow.

----------------------------------------
Bug #13935: Unclear syntax error when class title is missing colon
https://projects.puppetlabs.com/issues/13935

Author: Eric Shamow
Status: Unreviewed
Priority: Normal
Assignee: 
Category: error reporting
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Sample code to replicate:

class test {
  class { 'beingcalled' }
}

The 'beingcalled' class should say 'beingcalled': - however the error reported 
is:

Could not parse for environment production: Syntax error at '}'; expected '}' 
at /tmp/test.pp:2 

This is very unclear.  When not wrapped in an outer class, the error is a 
little better:

Could not parse for environment production: Syntax error at '}' at 
/tmp/test.pp:1 

But still, we aren't telling people that they are missing a colon.


-- 
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.

Reply via email to