Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Error Management #25

Open
3 tasks
ejmg opened this issue Dec 13, 2023 · 0 comments
Open
3 tasks

Client Error Management #25

ejmg opened this issue Dec 13, 2023 · 0 comments
Labels
client new feature New feature or request

Comments

@ejmg
Copy link
Collaborator

ejmg commented Dec 13, 2023

Summary

Put simply, error management could be further improved.

Description

As it works now, error management is pretty minimal. In most cases, errors that make it to the client get suppressed and replaced with a generic error message; often times, this message communicates nothing anything useful to neither the user nor does it log anything useful for the developers. It is also as likely to be incorrect/misleading, e.g. turning a 500 error into a 400 error.

Improvements

  • better logging
  • Refine what gets passed as to queryClient and, consequently, the toaster pop-up
  • Leverage Zod's error facilities to improve the errors generated by validators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client new feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant