raise things when there's a yaml exception (non-zero exit code

This commit is contained in:
Parker Moore 2013-05-17 22:44:46 +02:00
parent fa1cbb7708
commit a95fa70d72
1 changed files with 2 additions and 5 deletions

View File

@ -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