zkat / miette

Fancy extension for std::error::Error with pretty, detailed diagnostic printing.
https://docs.rs/miette
Apache License 2.0
1.98k stars 113 forks source link

Remove severity from diagnostic output #342

Open NicholasLYang opened 7 months ago

NicholasLYang commented 7 months ago

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 commented 7 months ago

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