lib/nanoc3/base/site.rb in nanoc3-3.0.0 vs lib/nanoc3/base/site.rb in nanoc3-3.0.1
- old
+ new
@@ -271,10 +271,10 @@
# rules.
def build_reps
@items.each do |item|
# Find matching rules
matching_rules = self.compiler.item_compilation_rules.select { |r| r.applicable_to?(item) }
- raise Nanoc3::Errors::NoMatchingCompilationRuleFound.new(rep) if matching_rules.empty?
+ raise Nanoc3::Errors::NoMatchingCompilationRuleFound.new(item) if matching_rules.empty?
# Create reps
rep_names = matching_rules.map { |r| r.rep_name }.uniq
rep_names.each do |rep_name|
item.reps << ItemRep.new(item, rep_name)