aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.rs')
-rw-r--r--src/actions.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions.rs b/src/actions.rs
index c63191f..f77378e 100644
--- a/src/actions.rs
+++ b/src/actions.rs
@@ -52,7 +52,11 @@ pub async fn unlock(
crate::cipherstring::CipherString::new(protected_key)?;
let key = match protected_key.decrypt_locked_symmetric(&identity.keys) {
Ok(master_keys) => crate::locked::Keys::new(master_keys),
- Err(Error::InvalidMac) => return Err(Error::IncorrectPassword),
+ Err(Error::InvalidMac) => {
+ return Err(Error::IncorrectPassword {
+ message: "Password is incorrect. Try again.".to_string(),
+ })
+ }
Err(e) => return Err(e),
};