lib/spf/model.rb in spf-0.0.31 vs lib/spf/model.rb in spf-0.0.32

- old
+ new

@@ -679,11 +679,11 @@ end end def parse_end unless @parse_text == '' - error(SPF::JunkInTermError.new("Junk encountered in modifier #{@text}")) + error(SPF::JunkInTermError.new("Junk encountered in modifier #{@text}", @text, @parse_text)) end @parse_text = nil end def to_s @@ -854,10 +854,10 @@ term = self.parse_term rescue SPF::Error => e term.errors << e if term @errors << e raise if @raise_exceptions - return if SPF::JunkInRecordError === e + return if SPF::JunkInRecordError === e or SPF::JunkInTermError === e end end end def parse_version_tag