-
Notifications
You must be signed in to change notification settings - Fork 209
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
enhance error handling with thiserror #1447
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
BTW, you can use "git commit --amend -s" to sign this commit to pass the CI.
fbf754d
to
b3d8f95
Compare
Signed-off-by: linchuan <[email protected]>
b3d8f95
to
c3fc5cf
Compare
It seems that there might be an issue with the aci pipeline. Could u help take a look or let me know if there is anything else I need to do? |
Codecov Report
@@ Coverage Diff @@
## master #1447 +/- ##
==========================================
- Coverage 46.29% 46.27% -0.02%
==========================================
Files 123 123
Lines 38872 38869 -3
Branches 38872 38869 -3
==========================================
- Hits 17995 17987 -8
- Misses 19906 19909 +3
- Partials 971 973 +2
|
@CormickKneey The codecov CI should be fixed, let's move forward (the failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
@@ -14,6 +14,7 @@ log = "0.4.8" | |||
serde_json = "1.0.53" | |||
toml = "0.5" | |||
|
|||
thiserror = "1.0.30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move it to line 15.
@@ -51,8 +52,9 @@ pub enum TraceClass { | |||
} | |||
} | |||
|
|||
#[derive(Debug)] | |||
#[derive(Error, Debug)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about using #[derive(thiserror::Error, Debug)]
, it's more informative.
Thanks for the PR! The target of using |
Ah, I didn't notice the |
Relevant Issue (if applicable)
close issue
Details
use thiserror in ApiError and RafsError. Also some changes in nydusError.
Types of changes
Checklist