summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet.rb1
-rw-r--r--lib/puppet/error.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index 402a7e3b8..19b7ef134 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -104,6 +104,7 @@ module Puppet
end
self.setdefaults(:puppet,
+ :trace => [false, "Whether to print stack traces on some errors"],
:statedir => { :default => "$vardir/state",
:mode => 01777,
:desc => "The directory where Puppet state is stored. Generally,
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)