More helpful error message on recover when wallet_data dir doesn't exist (#134)

* make recover error message when wallet doesn't exist more helpful

* rustfmt
This commit is contained in:
Yeastplume
2019-06-04 16:48:04 +01:00
committed by GitHub
parent 03ab8ad8bd
commit 42befd2340
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -57,6 +57,10 @@ pub enum ErrorKind {
#[fail(display = "Wallet seed doesn't exist error")]
WalletSeedDoesntExist,
/// Wallet seed doesn't exist
#[fail(display = "Wallet doesn't exist at {}. {}", _0, _1)]
WalletDoesntExist(String, String),
/// Enc/Decryption Error
#[fail(display = "Enc/Decryption error (check password?)")]
Encryption,