bigcommerce / storefront-data-hooks

Hooks for React Storefront UI Components
MIT License
166 stars 36 forks source link

Can the actual errors please be passed back to client? #110

Closed andrewf414 closed 3 years ago

andrewf414 commented 3 years ago

Hi, I imagine this happens elsewhere, but I am looking at signup giving a generic "something went wrong" type error. Could it pass back the actual error to be more useful? e.g. "email xxxx already in use"? https://github.com/bigcommerce/storefront-data-hooks/blob/bf5d80224e4ae44413f6538b4855f88775e47494/src/api/customers/signup.ts

jorgemasta commented 3 years ago

Yes, it's something we contemplate, I think in those cases like login it would be quite useful.

I close as it is a duplicate of #23