Fix a bug in error reporting based on returned XML data.

This commit is contained in:
Colin Kuskie 2009-11-06 21:23:22 -08:00
parent 9206a0b80f
commit bfc05ddc7a

View file

@ -203,7 +203,7 @@ sub _calculateFromXML {
WebGUI::Error::Shop::RemoteShippingRate->throw(error => "Illegal package index returned by USPS: $id"); WebGUI::Error::Shop::RemoteShippingRate->throw(error => "Illegal package index returned by USPS: $id");
} }
if (exists $package->{Error}) { if (exists $package->{Error}) {
WebGUI::Error::Shop::RemoteShippingRate->throw(error => $package->{Description}); WebGUI::Error::Shop::RemoteShippingRate->throw(error => $package->{Error}->{Description});
} }
my $unit = $shippableUnits[$id]; my $unit = $shippableUnits[$id];
if ($unit->[0]->getSku->shipsSeparately) { if ($unit->[0]->getSku->shipsSeparately) {