summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parameter.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-15 17:32:26 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-15 17:32:26 +0000
commit48992d712bc6d226d117bebd887c0fd42816fc3a (patch)
treea799c010936ae97bdce222d72dfe31790aef4357 /lib/puppet/parameter.rb
parentcda7253b2da3b6980f5cf2846f631597ef249000 (diff)
downloadpuppet-48992d712bc6d226d117bebd887c0fd42816fc3a.tar.gz
puppet-48992d712bc6d226d117bebd887c0fd42816fc3a.tar.xz
puppet-48992d712bc6d226d117bebd887c0fd42816fc3a.zip
Using the "trace" configuration parameter to determine whether a stack trace should be printed, rather than just using "debug". I added the param a little while ago and was using it internally in Puppet::DevError, but I just now went through the whole configuration and switched to using it.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1613 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parameter.rb')
-rw-r--r--lib/puppet/parameter.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/puppet/parameter.rb b/lib/puppet/parameter.rb
index e03653057..d96d290b2 100644
--- a/lib/puppet/parameter.rb
+++ b/lib/puppet/parameter.rb
@@ -94,11 +94,8 @@ module Puppet
Puppet.debug "Reraising %s" % detail
raise
rescue => detail
- if Puppet[:debug]
- puts detail.backtrace
- end
raise Puppet::DevError, "Munging failed for class %s: %s" %
- [self.name, detail]
+ [self.name, detail], detail.backtrace
end
end
#@munger = block
@@ -152,12 +149,9 @@ module Puppet
rescue ArgumentError, Puppet::Error, TypeError
raise
rescue => detail
- if Puppet[:debug]
- puts detail.backtrace
- end
raise Puppet::DevError,
"Validate method failed for class %s: %s" %
- [self.name, detail]
+ [self.name, detail], detail.backtrace
end
end
end