lib/dokkit/resource/document.rb in dokkit-0.4.3 vs lib/dokkit/resource/document.rb in dokkit-0.4.4
- old
+ new
@@ -119,10 +119,14 @@
@logger.warn("Layout file '#{get_layout_filename(name, format)}' does not exists for '#{source_fn}'!")
end
end
def default_filter_chain_for(formatter, format)
- @configuration[:default_filter_chain][formatter][format]
+ if @configuration[:default_filter_chain][formatter].has_key?(format)
+ @configuration[:default_filter_chain][formatter][format]
+ else
+ @logger.error("Output format '#{format}' is not available for '#{formatter}' formatter.")
+ end
end
def default_postfilter_chain_for(format)
@configuration[:default_postfilter_chain][format]
end