aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index bc97087..d584e53 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -46,6 +46,9 @@ pub enum Error {
#[error("failed to expand with hkdf")]
HkdfExpand,
+ #[error("incorrect api key")]
+ IncorrectApiKey,
+
#[error("{message}")]
IncorrectPassword { message: String },
@@ -132,6 +135,9 @@ pub enum Error {
#[error("error waiting for pinentry to exit")]
PinentryWait { source: tokio::io::Error },
+ #[error("This device has not yet been registered with the Bitwarden server. Run `rbw register` first, and then try again.")]
+ RegistrationRequired,
+
#[error("failed to remove db at {}", .file.display())]
RemoveDb {
source: std::io::Error,
@@ -150,6 +156,9 @@ pub enum Error {
#[error("failed to decrypt")]
Rsa { source: rsa::errors::Error },
+ #[error("failed to decrypt")]
+ RsaPkcs8 { source: rsa::pkcs8::Error },
+
#[error("failed to save config to {}", .file.display())]
SaveConfig {
source: std::io::Error,