From a6df5378b91516aabbb5643e41e688a0dc1aaeb7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 27 Oct 2021 22:20:33 -0400 Subject: add a useful error message if registration is required --- src/error.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 5eb4b4b..d584e53 100644 --- a/src/error.rs +++ b/src/error.rs @@ -135,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, -- cgit v1.2.3-54-g00ecf