lib/vedeu/support/template.rb in vedeu-0.4.35 vs lib/vedeu/support/template.rb in vedeu-0.4.36
- old
+ new
@@ -53,10 +53,10 @@
# @return [String]
def path
fail MissingRequired, 'No path to template specified.' if @path.empty?
unless File.exist?(@path)
- fail MissingRequired, 'Template file cannot be found.'
+ fail MissingRequired, "Template file cannot be found. (#{@path})"
end
@path
end