Issue #2822 has been updated by James Turnbull.

Status changed from Ready for Testing to Closed

Pushed in commit:"53a980537a46117c94ba535bca818d7dc83c4931" in branch 0.25.x
----------------------------------------
Bug #2822: Unhelpful error message when an undefined variable is used in a 
resource title
http://projects.reductivelabs.com/issues/2822

Author: Alan Barrett
Status: Closed
Priority: Normal
Assigned to: Markus Roberts
Category: error reporting
Target version: 0.25.2
Affected version: 0.25.1
Keywords: 
Branch: http://github.com/MarkusQ/puppet/tree/ticket/0.25.x/2822


When a resource is defined using an undefined variable, the error message is 
unhelpful.

For example:

<pre>
class myclass {
   $var = "/wherever/somefile"
   file { $wrong_var:
       ensure => file,
   }
}
</pre>

gives an error message like

<pre>
err: Could not retrieve catalog from remote server: Could not intern from pson: 
Could not convert from pson: Could not find relationship target ''
</pre>

After applying the patch from issue #2770, the error messsage is slightly 
improved:

<pre>
err: Could not retrieve catalog from remote server: Could not intern from pson: 
Could not convert from pson: Could not find relationship target "File[]"
</pre>

but there's still no indication of which line in which class in which manifest 
caused the problem.


-- 
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://reductivelabs.com/redmine/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