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