lib/buildmaster/templatelets/when.rb in BuildMaster-0.8.1 vs lib/buildmaster/templatelets/when.rb in BuildMaster-0.9.0
- old
+ new
@@ -10,10 +10,10 @@
end
def process(target, template, source)
eval = template.attribute_value!('test')
if (not @evaluator.respond_to?(eval))
- raise TemplateException, "#{@evaluator.class} cannot evaluate expression #{eval}"
+ raise TemplateError, "#{@evaluator.class} cannot evaluate expression #{eval}"
end
if (@evaluator.send(eval, source.path))
runner = TemplateRunner.new(target, template, source)
runner.templatelets = @site_spec.load_templatelets
runner.process
\ No newline at end of file