-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implements proper user error handling (#5)
* Implements proper user error handling We deliniate between user errors and program errors. Any user error should effectively cascasde up to where it's relevant. We don't want it crashing the program or anything like that either. What I've done here is expand on the existing use of the UFE library (user facing errors) which gives us nice rendering and the ability to trivially define errors, the reason for them, and how you might fix them. We combined this with the macro based error library to make easy to use errors for devs with in theory meaningful output for users. There's a lot of stuff that should error that just doesn't (configs) but I think this is a lot better then how things were before. There are a few issues, mostly with converting out of crate errors into this system. It's less a matter of being impossible and more I don't have the kahones to setup hints for every single type on both input and output failures. So we just let them speak for themselves. Anyhow tool should crash less and report more now, which is pog. Oh also I've pulled in owo-colors to make the terminal output a bit more pretty.
- Loading branch information
1 parent
7343818
commit 3eb24cd
Showing
20 changed files
with
468 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-C", "target-feature=+crt-static"] | ||
|
||
[target.x86_64-unknown-linux-musl] | ||
rustflags = ["-C", "target-feature=+crt-static"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.