getmeli / meli

Platform for deploying static sites and frontend applications easily. Automatic SSL, deploy previews, reverse proxy, and more.
Other
2.4k stars 97 forks source link

feat(ui): Improve toast error messages (retry) #253

Closed mtiller closed 2 years ago

mtiller commented 2 years ago

feat(ui): Improve toast error messages

This just modified the error handling on several axios calls to extract the underlying error embedded in the HTTP response so it is visible to the user. The function for doing this already existed but was never used (and had a typo in the name which I've also corrected here).

mtiller commented 2 years ago

Note, this PR includes a .vscode/settings.json file to prevent format on save. I'd say this should be disabled until a .prettierrc file is put in place (or, if another formatter is being used, it is explicitly declared in the workspace settings). This will prevent formatting changes from getting submitted in PRs.

gempain commented 2 years ago

Thanks for this @mtiller ! I'll make a new beta release this evening 😄