lib/pdd/rule/roles.rb in pdd-0.20.7 vs lib/pdd/rule/roles.rb in pdd-0.20.8

- old
+ new

@@ -32,9 +32,10 @@ def errors @xml.xpath('//puzzle').map do |p| role = p.xpath('role/text()').to_s next nil if @roles.include?(role) + "puzzle #{p.xpath('file/text()')}:#{p.xpath('lines/text()')}" + if role.empty? " doesn't define any role"\ ", while one of these roles is required: #{@roles}" else