Issue #15114 has been updated by eric sorenson.

Status changed from Unreviewed to Accepted
Assignee set to Hunter Haugen

Hunter, sounds good--feel like putting in a patch? The attached URL has UX 
guidance on error messages.
----------------------------------------
Refactor #15114: RValue function errors should be more clear
https://projects.puppetlabs.com/issues/15114#change-68904

Author: Hunter Haugen
Status: Accepted
Priority: Normal
Assignee: Hunter Haugen
Category: 
Target version: 
Affected Puppet version: 
Keywords: ux, functions
Branch: 


When using an `:rvalue` function that isn't assigned to a variable in Puppet 
DSL, this error is shown:

`Function 'hiera_create_resources' must be the value of a statement at 
/opt/puppet/mastertest/manifests/nodes.pp:21 on node foo.com`

Something that might be more clear would be:

`Function 'hiera_create_resources' is an rvalue function and must be assigned 
to a variable at /opt/puppet/mastertest/manifests/nodes.pp:21 on node foo.com`

Or something to indicate that variable assignment is needed for the function, 
and perhaps its type.


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