vue-storefront
vue-storefront copied to clipboard
[SPIKE] Better error handling
trafficstars
At this moment we present errors without any formatting, and very often they are useless when it comes to debugging and understanding errors. In this spike please do research for:
- How to present a better stack trace in the nuxt.js
- How to show the errors from the middleware in nuxt.js error page (if it's even possible)
- Throwing readable errors in integrations for the most common scenarios: eg in commercetools when someone is loading so many items let's translate error "to many items" to something like "you are loading to many items, please limit items by using search({ ... limit: X }) call" (or something like this)
➤ Matt Pietrusinski commented:
For better understanding network errors i’m propose an object with this scheme to be displayed in terminal.
{ errorType: ENUM; code: number; error: string; message: string; failedFunction: string; }E.g.
!Zrzut ekranu 2021-05-27 o 12.23.31.png|width=699,height=198!
Issue is closed. Reason: Too Old (>6 months)
Sergii Kirianov
Developer Advocate
Vue Storefront