Issue #17350 has been updated by Henrik Lindberg.

Status changed from Unreviewed to Accepted
Keywords set to error message, usability

If it is possible to output that something is invalid, it must have access to 
enough information to give a better error message.
----------------------------------------
Bug #17350: improve invalid parameter error message from create resources
https://projects.puppetlabs.com/issues/17350#change-78449

Author: Luke Bigum
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.0.0
Keywords: error message, usability
Branch: 


The error message from create_resources() when an invalid parameter is given is 
a little difficult to understand.

For example if I have some Hiera data like this (where the 'enable' parameter 
is mis-spelt as 'enabled'):

    service:
      puppet:
        enabled: true

Then it would be more helpful if the error message looked something like this:

    Invalid parameter "enabled" for resource type 'service' via 
create_resources() on node foo

Instead of what it does now:

    Invalid parameter enabled on node foo




-- 
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 puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to