lib/spf/model.rb in spf-0.0.24 vs lib/spf/model.rb in spf-0.0.25

- old
+ new

@@ -297,11 +297,11 @@ end end def parse_end unless @parse_text == '' - error(SPF::JunkInTermError.new("Junk encountered in mechanism '#{@text}'")) + error(SPF::JunkInTermError.new("Junk encountered in mechanism '#{@text}'", @text, @parse_text)) end @parse_text = nil end def qualifier @@ -929,10 +929,10 @@ @terms << mod end end else - raise SPF::JunkInRecordError.new("Junk encountered in record '#{@text}'") + raise SPF::JunkInRecordError.new("Junk encountered in record '#{@text}'", @text, @parse_text) end @errors.concat(term.errors) return term end