summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/interpreter.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-18 17:24:15 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-01-18 17:24:15 +0000
commit6bab167dcbb274fd302a65d567d6af0ef6621b79 (patch)
tree92093e971bab20400ac8218a5cf1b159e64b5cbb /lib/puppet/parser/interpreter.rb
parented39be9dd2ecdbe9a8624ed2f6c03334e123e81d (diff)
downloadpuppet-6bab167dcbb274fd302a65d567d6af0ef6621b79.tar.gz
puppet-6bab167dcbb274fd302a65d567d6af0ef6621b79.tar.xz
puppet-6bab167dcbb274fd302a65d567d6af0ef6621b79.zip
Made lots of small changes, mostly to help usability but also fixed a couple of key bugs
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@841 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
-rw-r--r--lib/puppet/parser/interpreter.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb
index 96555faa1..b1cf4207c 100644
--- a/lib/puppet/parser/interpreter.rb
+++ b/lib/puppet/parser/interpreter.rb
@@ -82,19 +82,15 @@ module Puppet
#Puppet.err "File %s, line %s: %s" %
# [except.file, except.line, except.message]
if Puppet[:debug]
- puts except.stack
- end
- if Puppet[:debug]
- puts caller
+ puts except.backtrace
end
#exit(1)
raise
rescue => except
error = Puppet::DevError.new("%s: %s" %
[except.class, except.message])
- error.stack = caller
if Puppet[:debug]
- puts caller
+ puts except.backtrace
end
raise error
end
@@ -111,6 +107,8 @@ module Puppet
# entire configuration each time we get a connect.
def evaluate
+ # FIXME When this produces errors, it should specify which
+ # node caused those errors.
if @usenodes
@scope = Puppet::Parser::Scope.new() # no parent scope
@scope.name = "top"