uerr
uerr
is a crate which provides stunning visual error handling.
Showcase
Using the code below, we can display a simple error and show it to the user.
use UserError;
Output
uerr/error: could not open file
- caused by: The system cannot find the file specified.
+ help: Does this file exist?
With multiple arguments
program.exe: could not open file
- caused by: The system cannot find the file specified.
| Filler reason.
+ help: Does this file exist?
| Filler help.
Exiting with errors
The UserError
struct also supports inline exiting.