solidusio-contrib / solidus_active_shipping

:package: Solidus integration for Shopify's active_shipping gem.
8 stars 22 forks source link

Exception handler fails when multiple errors occur at the same time #42

Open Senjai opened 7 years ago

Senjai commented 7 years ago

Per this line https://github.com/solidusio-contrib/solidus_active_shipping/blob/master/app/models/spree/calculator/shipping/active_shipping/base.rb#L136

This isn't always a hash, there may be an array of errors here, and thus the handler fails when trying to call key? on the array. We should either add further type checking, or use Array.wrap here.

image