aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-05-28 23:11:03 -0400
committerJesse Luehrs <doy@tozt.net>2020-05-28 23:11:03 -0400
commit50bb7546b0d3d3192489421f3f671335275615a6 (patch)
tree0da5ae1e8e718cb771c8dfeb769879add79401a7 /src/error.rs
parentf3438f70e2b581b9a8dce6de886fa0a83f21f1fd (diff)
downloadrbw-50bb7546b0d3d3192489421f3f671335275615a6.tar.gz
rbw-50bb7546b0d3d3192489421f3f671335275615a6.zip
improve cipherstring parsing errors
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 5a95fec..131d5b9 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -40,8 +40,8 @@ pub enum Error {
#[snafu(display("invalid base64"))]
InvalidBase64 { source: base64::DecodeError },
- #[snafu(display("invalid cipherstring"))]
- InvalidCipherString,
+ #[snafu(display("invalid cipherstring: {}", reason))]
+ InvalidCipherString { reason: String },
#[snafu(display("invalid value for $EDITOR: {}", editor.to_string_lossy()))]
InvalidEditor { editor: std::ffi::OsString },
@@ -164,6 +164,9 @@ pub enum Error {
providers: Vec<crate::api::TwoFactorProviderType>,
},
+ #[snafu(display("unimplemented cipherstring type: {}", ty))]
+ UnimplementedCipherStringType { ty: String },
+
#[snafu(display("error writing to pinentry stdin"))]
WriteStdin { source: tokio::io::Error },
}