lib/nanoc/base/errors.rb in nanoc-4.9.1 vs lib/nanoc/base/errors.rb in nanoc-4.9.2

- old
+ new

@@ -222,9 +222,21 @@ def initialize(layout) super("There is no filter defined for the layout #{layout.identifier}") end end + class OutputNotWritten < Generic + def initialize(filter_name, output_filename) + super("The #{filter_name.inspect} filter did not write anything to the required output file, #{output_filename}.") + end + end + + class FilterReturnedNil < Generic + def initialize(filter_name) + super("The #{filter_name.inspect} filter returned nil, but is required to return a String.") + end + end + class InternalInconsistency < Generic end end end