raise things when there's a yaml exception (non-zero exit code
This commit is contained in:
parent
fa1cbb7708
commit
a95fa70d72
|
@ -77,10 +77,7 @@ module Jekyll
|
|||
Liquid::Template.parse(content).render!(payload, info)
|
||||
rescue Exception => e
|
||||
Jekyll::Stevenson.error "Liquid Exception:", "#{e.message} in #{payload[:file]}"
|
||||
e.backtrace.each do |backtrace|
|
||||
puts backtrace
|
||||
end
|
||||
abort("Build Failed")
|
||||
raise e
|
||||
end
|
||||
|
||||
# Recursively render layouts
|
||||
|
|
Loading…
Reference in New Issue