[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

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


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.

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 Sat Aug 08 23:19:17 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.