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

Remove severity from diagnostic output #342

Open
NicholasLYang opened this issue Feb 16, 2024 · 1 comment
Open

Remove severity from diagnostic output #342

NicholasLYang opened this issue Feb 16, 2024 · 1 comment

Comments

@NicholasLYang
Copy link

Hi, is it possible to remove the severity from the output, i.e. the Error: prefix? I find that for the related errors it looks a little out of place.

Screenshot 2024-02-16 at 11 52 28 AM

Thanks!

@zkat
Copy link
Owner

zkat commented Feb 16, 2024

You can do this if you print out the error by hand and manually exit non-0, instead of relying on the return from main. This “Error” is added by rust itself, not miette.

There is currently no way to remove this from related errors, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants