Skip to content

Commit

Permalink
Add error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
karbyshev committed Apr 19, 2023
1 parent 0ca5f1a commit 1e0a7d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/src/lib/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ pub fn read_and_confirm_encryption_password(
};
if to_confirm != password {
eprintln!("Your two inputs do not match!");
eprintln!("Action cancelled, no changes persisted.");
cli::safe_exit(1)
}
password
Expand All @@ -748,7 +749,8 @@ pub fn read_encryption_password(prompt_msg: &str) -> String {
},
};
if pwd.is_empty() {
eprintln!("Password cannot be empty");
eprintln!("Password cannot be empty.");
eprintln!("Action cancelled, no changes persisted.");
cli::safe_exit(1)
}
pwd
Expand Down

0 comments on commit 1e0a7d8

Please sign in to comment.