diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-08-29 23:27:27 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-08-29 23:27:27 +0000 |
| commit | 6f175ce41fa4a7a62783c173965683c87c61095b (patch) | |
| tree | 794b48889428a1115e01b1f6ca287a1dbfac3354 /lib/puppet/parser | |
| parent | a46a620486b106ffc8e653b48a1de58ca6a64933 (diff) | |
| download | puppet-6f175ce41fa4a7a62783c173965683c87c61095b.tar.gz puppet-6f175ce41fa4a7a62783c173965683c87c61095b.tar.xz puppet-6f175ce41fa4a7a62783c173965683c87c61095b.zip | |
Adding automatic stacktrace printing to deverror. I need to go through and remove the redundant puts in the rest of the code, but I need this now for some client debugging
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1515 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/ast.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/puppet/parser/ast.rb b/lib/puppet/parser/ast.rb index 06798b44d..a4375a476 100644 --- a/lib/puppet/parser/ast.rb +++ b/lib/puppet/parser/ast.rb @@ -79,10 +79,7 @@ module Puppet ) error.line ||= @line error.file ||= @file - error.backtrace = detail.backtrace - if Puppet[:debug] - puts detail.backtrace - end + error.set_backtrace detail.backtrace raise error end end |
