Skip to content

Commit

Permalink
Improves mnemonic error message
Browse files Browse the repository at this point in the history
Co-authored-by: Fraccaroli Gianmarco <[email protected]>
  • Loading branch information
2 people authored and Gianmarco Fraccaroli committed Nov 17, 2022
1 parent ac80893 commit 527850f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phase2-coordinator/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ fn check_mnemonic(mnemonic: &Mnemonic) -> Result<()> {
break;
} else {
if attempt == 2 {
debug!("Expected: {}, answer: {}", mnemonic_slice[i], response);
eprintln!("{}", "Expected: {}, answer: {}\nRun out of attempts for the mnemonic check. Client will shutdown, you'll need to restart the CLI".red().bold(), mnemonic_slice[i], response);
return Err(IOError::CheckMnemonicError);
} else {
debug!("Wrong answer, retry");
println!("{}", "Wrong answer, retry".red());
}
}
}
Expand Down

0 comments on commit 527850f

Please sign in to comment.