summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-07-11 16:52:20 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-07-11 16:52:20 +0000
commit71399017c06b5f38e1e091f932066280552e586c (patch)
tree815977a45e8a5530d53e3c8fa8bd990fc7368396 /lib/puppet/parser
parent3fbd06a3f38f9895dae0eee69e058b2d6f2dbb83 (diff)
downloadpuppet-71399017c06b5f38e1e091f932066280552e586c.tar.gz
puppet-71399017c06b5f38e1e091f932066280552e586c.tar.xz
puppet-71399017c06b5f38e1e091f932066280552e586c.zip
Fixing error when template does not exist
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1383 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/functions.rb1
-rw-r--r--lib/puppet/parser/scope.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb
index 38ba0da9f..a9f7ff1da 100644
--- a/lib/puppet/parser/functions.rb
+++ b/lib/puppet/parser/functions.rb
@@ -127,6 +127,7 @@ module Functions
vals.collect do |file|
# Use a wrapper, so the template can't get access to the full
# Scope object.
+ debug "Retrieving template %s" % file
wrapper = Puppet::Parser::Scope::TemplateWrapper.new(self, file)
begin
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb
index e9dabdcea..6e895afa1 100644
--- a/lib/puppet/parser/scope.rb
+++ b/lib/puppet/parser/scope.rb
@@ -24,7 +24,7 @@ module Puppet::Parser
end
unless FileTest.exists?(@file)
- raise Puppet::ParseError
+ raise Puppet::ParseError,
"Could not find template %s" % file
end