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

Improve error reporting #161

Open
prsabahrami opened this issue Sep 26, 2024 · 0 comments
Open

Improve error reporting #161

prsabahrami opened this issue Sep 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@prsabahrami
Copy link
Contributor

prsabahrami commented Sep 26, 2024

I think the error reporting and printing is not very organized at the moment. Maybe we can try creating an error.rs containing different error structs for simple commands or if statements and then implement into_diagnostic() for all of them to add miette support. I'll try to open a PR with an idea of how I think would be good to handle this week. Let me know if you have any good idea in mind on what's good way to handle errors.

@prsabahrami prsabahrami added the enhancement New feature or request label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant