summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/ast.rb')
-rw-r--r--lib/puppet/parser/ast.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/puppet/parser/ast.rb b/lib/puppet/parser/ast.rb
index 03f390fa9..ea494dc6d 100644
--- a/lib/puppet/parser/ast.rb
+++ b/lib/puppet/parser/ast.rb
@@ -69,15 +69,16 @@ module Puppet
except.file ||= @file
raise
rescue => detail
- if Puppet[:debug]
- puts detail.backtrace
- end
+ #if Puppet[:debug]
+ # puts detail.backtrace
+ #end
error = Puppet::DevError.new(
"Child of type %s failed with error %s: %s" %
[self.class, detail.class, detail.to_s]
)
error.line ||= @line
error.file ||= @file
+ error.backtrace = detail.backtrace
raise error
end
end
@@ -145,5 +146,6 @@ require 'puppet/parser/ast/objectref'
require 'puppet/parser/ast/selector'
require 'puppet/parser/ast/typedefaults'
require 'puppet/parser/ast/vardef'
+require 'puppet/parser/ast/set'
# $Id$