aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-03-02 02:45:04 -0500
committerJesse Luehrs <doy@tozt.net>2021-03-02 02:45:04 -0500
commitd149a01bffd2bfdd16e471c8be55f7760c70dd69 (patch)
tree552b9f5a1288cf29ae88bf65a5e201692a29004a /src/error.rs
parentafde294f5922cead3efde54400c973e55004aa0a (diff)
downloadrbw-d149a01bffd2bfdd16e471c8be55f7760c70dd69.tar.gz
rbw-d149a01bffd2bfdd16e471c8be55f7760c70dd69.zip
suggest rotating the user's encryption key for old cipherstring types
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 6e8e6da..e43084c 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -162,6 +162,9 @@ pub enum Error {
#[snafu(display("error spawning pinentry"))]
Spawn { source: tokio::io::Error },
+ #[snafu(display("cipherstring type {} too old\n\nPlease rotate your account encryption key (https://bitwarden.com/help/article/account-encryption-key/) and try again.", ty))]
+ TooOldCipherStringType { ty: String },
+
#[snafu(display("two factor required"))]
TwoFactorRequired {
providers: Vec<crate::api::TwoFactorProviderType>,