Output path in case of render error in included file

Fixes #1591.
This commit is contained in:
maul.esel 2013-10-01 23:02:50 +02:00
parent 623fa14b3c
commit 7a4ea086a1
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ module Jekyll
# Returns the converted content
def render_liquid(content, payload, info)
Liquid::Template.parse(content).render!(payload, info)
rescue Tags::IncludeTagError => e
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{e.path}"
raise e
rescue Exception => e
Jekyll.logger.error "Liquid Exception:", "#{e.message} in #{self.path}"
raise e