[PUP-2902] collection of classes should raise a meaningful error Created: 2014/07/07  Updated: 2019/04/04  Resolved: 2014/07/08

Status: Closed
Project: Puppet
Component/s: Compiler
Affects Version/s: None
Fix Version/s: PUP 3.7.0

Type: Bug Priority: Normal
Reporter: Henrik Lindberg Assignee: Joshua Partlow
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Epic Link: Puppet 4 Language
Story Points: 1
Sprint: Week 2014-6-25 to 2014-7-9
QA Contact: Kurt Wall

 Description   

If an attempt is made to collect classes

Class <| |>

The 3x runtime issues an error that says:

Error: Resource type class doesn't exist

Which is misleading.

The 4x runtime fails with this message: (essentially the same).

Error while evaluating a Virtual Query, Resource type class doesn't exist

The message should say that it is invalid/not allowed to collect classes.
The logic should not even attempt to collect.



 Comments   
Comment by Andrew Parker [ 2014/07/07 ]

Merged into master in b119f6

Comment by Joshua Partlow [ 2014/07/08 ]

Verified the error message change for current and future parser when attempting a `puppet apply -e 'Class <| |>`

Generated at Wed Nov 13 16:56:52 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.