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