lib/spf/model.rb in spf-0.0.28 vs lib/spf/model.rb in spf-0.0.29

- old
+ new

@@ -449,11 +449,11 @@ def parse_params(required = true) self.parse_ipv4_network(required) if IP === @ip_network @ip_netblocks << @ip_network @errors << SPF::InvalidMechCIDRError.new( - 'Invalid CIDR netblock - bits in host portion of address' + "Invalid CIDR netblock - bits in host portion of address of #{@ip_network}" ) if @ip_network.offset != 0 end end def params @@ -482,10 +482,10 @@ def parse_params(required = true) self.parse_ipv6_network(required) @ip_netblocks << @ip_network if IP === @ip_network @errors << SPF::InvalidMechCIDRError.new( - 'Invalid CIDR netblock - bits in host portion of address' + "Invalid CIDR netblock - bits in host portion of address of #{@ip_network}" ) if @ip_network.offset != 0 end def params return nil unless @ip_network