summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/ast.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-03 23:49:53 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-08-03 23:49:53 +0000
commit97cd057177f18a0e6694aab0e440f86e0bf08d42 (patch)
tree31a9808aa723180eb43f4fc2c952c3824f89d5d7 /lib/puppet/parser/ast.rb
parent72f2ac39e036d3fea88569d17f3e455670bba063 (diff)
downloadpuppet-97cd057177f18a0e6694aab0e440f86e0bf08d42.tar.gz
puppet-97cd057177f18a0e6694aab0e440f86e0bf08d42.tar.xz
puppet-97cd057177f18a0e6694aab0e440f86e0bf08d42.zip
Fixing #314 and #729; here's the changelog:
Refactored how the parser and interpreter relate, so parsing is now effectively an atomic process (thus fixing #314 and #729). This makes the interpreter less prone to error and less prone to show the error to the clients. Note that this means that if a configuration fails to parse, then the previous, parseable configuration will be used instead, so the client will not know that the configuration failed to parse. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2742 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/ast.rb')
-rw-r--r--lib/puppet/parser/ast.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/ast.rb b/lib/puppet/parser/ast.rb
index c6067d353..ce5e8263e 100644
--- a/lib/puppet/parser/ast.rb
+++ b/lib/puppet/parser/ast.rb
@@ -86,7 +86,7 @@ class Puppet::Parser::AST
error = Puppet::Error.new(detail.to_s)
# We can't use self.fail here because it always expects strings,
# not exceptions.
- raise adderrorcontext(error)
+ raise adderrorcontext(error, detail)
end
end