lib/nanoc/base/errors.rb in nanoc-3.6.9 vs lib/nanoc/base/errors.rb in nanoc-3.6.10

- old
+ new

@@ -219,8 +219,17 @@ super("#{type} #{plural ? 'are' : 'is'} not available yet. You may be missing a Nanoc::Site#load_data call.") end end + # Error that is raised when multiple items or layouts with the same identifier exist. + class DuplicateIdentifier < Generic + + def initialize(identifier, type) + super("There are multiple #{type}s with the #{identifier} identifier.") + end + + end + end end