summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-13 17:43:45 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-13 17:43:45 +0000
commit3e1b6bc8e2d3c27d279e4160c8a1082cfa68d777 (patch)
tree959179aa2b6868430536c4239c7d1ebe11792da2 /lib/puppet
parent95269bf12514e6f6c67f304a58e3dd858fbba0f3 (diff)
downloadpuppet-3e1b6bc8e2d3c27d279e4160c8a1082cfa68d777.tar.gz
puppet-3e1b6bc8e2d3c27d279e4160c8a1082cfa68d777.tar.xz
puppet-3e1b6bc8e2d3c27d279e4160c8a1082cfa68d777.zip
Adding a :trace config option that prints stack traces of DevErrors, and using that in DevError instead of :debug
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1583 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/error.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/error.rb b/lib/puppet/error.rb
index b06c9ffc7..920bd086f 100644
--- a/lib/puppet/error.rb
+++ b/lib/puppet/error.rb
@@ -42,7 +42,7 @@ module Puppet # :nodoc:
class DevError < Error
# XXX This is probably the wrong way to do this, but...
def set_backtrace(trace)
- if Puppet[:debug]
+ if Puppet[:trace]
puts trace
end
super(trace)