lib/fulmar/domain/service/template_rendering_service.rb in fulmar-2.1.2 vs lib/fulmar/domain/service/template_rendering_service.rb in fulmar-2.2.0

- old
+ new

@@ -20,11 +20,11 @@ end end def template_path(template_file) template = "#{@config[:local_path]}/#{template_file}" - fail "Template filenames must end in .erb - '#{template}' does not" unless template[-4, 4] == '.erb' - fail "Cannot render missing config file '#{template}'" unless File.exist? template + raise "Template filenames must end in .erb - '#{template}' does not" unless template[-4, 4] == '.erb' + raise "Cannot render missing config file '#{template}'" unless File.exist? template template end end end end