vue-storefront-api
vue-storefront-api copied to clipboard
Refactoring / better error handling
There are so many places that could be improved especially when it comes to error handling as sometimes it's even hard to guess what's the meaning of the raised errors. Same with the readability, we can see some of callback hells that needs to be refactored.
https://github.com/DivanteLtd/vue-storefront-api/blob/develop/scripts/db.js#L20-L52 https://github.com/DivanteLtd/vue-storefront-api/blob/develop/scripts/db7.js#L24-L47
etc.