-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor(errors): improve displaying of errors #322
Conversation
Signed-off-by: simonsan <[email protected]>
crates/core/src/error.rs
Outdated
FromParseError(#[from] shell_words::ParseError), | ||
} | ||
|
||
/// [`CryptoErrorKind`] describes the errors that can happen while dealing with Cryptographic functions | ||
#[derive(Error, Debug, Display, Copy, Clone)] | ||
pub enum CryptoErrorKind { | ||
/// data decryption failed | ||
/// data decryption failed: `{0:?}` |
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.
The underlying error was not shown to the user, so this ended in a simple: data decryption failed
. Which is not really helpful. The hope is, that aead:Error
is a bit more helpful here.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
|
Based on #322 --------- Signed-off-by: simonsan <[email protected]>
Was merged with #323 |
Fixes #231