Merge pull request #1253 from mojombo/catch-conversion-errors
Catch conversion errors.
This commit is contained in:
		
						commit
						359383b5b4
					
				| 
						 | 
				
			
			@ -48,6 +48,10 @@ module Jekyll
 | 
			
		|||
    # Returns nothing.
 | 
			
		||||
    def transform
 | 
			
		||||
      self.content = converter.convert(self.content)
 | 
			
		||||
    rescue => e
 | 
			
		||||
      Jekyll.logger.error "Conversion error:", "There was an error converting" +
 | 
			
		||||
        " '#{self.path}'."
 | 
			
		||||
      raise e
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    # Determine the extension depending on content_type.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue