This project is read-only.
1
Vote

More Meaningful Error When Can't Find Tax Location

description

When calling the basketService.AddProductsToBasket, it throws an obscure error if the Location (country/region/postal code) don't map to a valid tax zone.

It blows up here: (line 1490 of BasketWorkerComponent)
           if (this.Context.DestinationTaxZoneId.HasValue)
            {
               
It would be easier to troubleshoot and handle if it threw a DestinationTaxZoneNotFound error (or something like that) with a helpful message like "Could not find a tax zone for Country: {0}, Region: {1}, Postal Code: {2}".

comments