lib/nanoc/base/errors.rb in nanoc-4.0.0b3 vs lib/nanoc/base/errors.rb in nanoc-4.0.0b4

- old
+ new

@@ -151,10 +151,11 @@ # @param [Nanoc::Int::ItemRep] item_rep The item rep from which the compiled # content was requested # # @param [Symbol] snapshot The requested snapshot def initialize(item_rep, snapshot) - @item_rep, @snapshot = item_rep, snapshot + @item_rep = item_rep + @snapshot = snapshot super("The “#{item_rep.inspect}” item rep does not have a snapshot “#{snapshot.inspect}”") end end # Error that is raised when a snapshot with an existing name is made.