Fix a bug in error reporting based on returned XML data.
This commit is contained in:
parent
9206a0b80f
commit
bfc05ddc7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue