Exception: Nanoc3::Errors::CannotUseBinaryFilter
- Inherits:
-
Generic
- Object
- StandardError
- Generic
- Nanoc3::Errors::CannotUseBinaryFilter
- Defined in:
- lib/nanoc3/base/errors.rb
Overview
Error that is raised when a binary filter is attempted to be applied to a textual item representation.
Instance Method Summary (collapse)
-
- (CannotUseBinaryFilter) initialize(rep, filter_class)
constructor
attempted to be filtered.
Constructor Details
- (CannotUseBinaryFilter) initialize(rep, filter_class)
attempted to be filtered
174 175 176 |
# File 'lib/nanoc3/base/errors.rb', line 174 def initialize(rep, filter_class) super("The “#{filter_class.inspect}” filter cannot be used to filter the “#{rep.item.identifier}” item (rep “#{rep.name}”), because binary filters cannot be used on textual items. If you are getting this error for an item that should be textual instead of binary, make sure that its extension is included in the text_extensions array in the site configuration.".make_compatible_with_env) end |