Permalink
Browse files

updated 'missing package' error messages

  • Loading branch information...
1 parent fac4887 commit 565f3d39b66a8b5f8bf155f7ca3a297657b99718 Nicholas Yianilos committed Sep 18, 2012
@@ -11,7 +11,7 @@ class InternationalShippingRatesLookup < Base
def initialize(*packages)
@packages = packages.flatten
if @packages.none?
- raise ArgumentError, 'A shipping rate lookup requires at least one package (USPS::Package)'
+ raise ArgumentError, 'An IntlRateV2 shipping rate lookup requires at least one package (USPS::Request::Package::InternationalPackage)'
end
end
@@ -11,7 +11,7 @@ class ShippingRatesLookup < Base
def initialize(*packages)
@packages = packages.flatten
if @packages.none?
- raise ArgumentError, 'A shipping rate lookup requires at least one package (USPS::Package)'
+ raise ArgumentError, 'A RateV4 shipping rate lookup requires at least one package (USPS::Request::Package::DomesticPackage)'
end
end

0 comments on commit 565f3d3

Please sign in to comment.