Issue #15635 has been updated by Hunter Haugen.

Keywords set to ux


----------------------------------------
Feature #15635: Fail function should give location information
https://projects.puppetlabs.com/issues/15635#change-67446

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


When writing `fail()` test cases I often find myself doing this:

<pre>
define foo::bar {
  #...
  if ! $empty_variable {
    fail("Foo::Bar[${name}]: \$empty_variable is empty")
  }
}
</pre>

It would be great if I don't have to actually write the location (class, 
defined resource, whatever) or even a variable telling the location in the 
`fail()` message. Instead, any fail message should also print the container 
from which it was called, automatically.


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