Issue #15114 has been reported by Hunter Haugen.

----------------------------------------
Refactor #15114: RValue function errors should be more clear
https://projects.puppetlabs.com/issues/15114

Author: Hunter Haugen
Status: Unreviewed
Priority: Normal
Assignee: 
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