Catch conversion errors. Constituent of #1105.
This commit is contained in:
parent
a8123e06f0
commit
cb1a2d1818
|
@ -48,6 +48,10 @@ module Jekyll
|
||||||
# Returns nothing.
|
# Returns nothing.
|
||||||
def transform
|
def transform
|
||||||
self.content = converter.convert(self.content)
|
self.content = converter.convert(self.content)
|
||||||
|
rescue => e
|
||||||
|
Jekyll.logger.error "Conversion error:", "There was an error converting" +
|
||||||
|
" '#{self.path}'."
|
||||||
|
raise e
|
||||||
end
|
end
|
||||||
|
|
||||||
# Determine the extension depending on content_type.
|
# Determine the extension depending on content_type.
|
||||||
|
|
Loading…
Reference in New Issue