From bff92128e7a68e69b25b216ff27bb1b5887f94ae Mon Sep 17 00:00:00 2001 From: Simon B Date: Fri, 12 Jan 2018 21:08:18 +0100 Subject: [PATCH] Clarify error message for `wallet info` when server refresh fails. Better about text for `wallet help restore` (#608) --- src/bin/grin.rs | 3 ++- wallet/src/info.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/grin.rs b/src/bin/grin.rs index 7db582d6..8c39284b 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -257,7 +257,8 @@ fn main() { .about("Initialize a new wallet seed file.")) .subcommand(SubCommand::with_name("restore") - .about("Attempt to restore wallet contents from the chain using seed and password."))) + .about("Attempt to restore wallet contents from the chain using seed and password. \ + NOTE: Backup wallet.* and run `wallet listen` before running restore."))) .get_matches(); diff --git a/wallet/src/info.rs b/wallet/src/info.rs index f9a36c80..3d8746ea 100644 --- a/wallet/src/info.rs +++ b/wallet/src/info.rs @@ -79,9 +79,9 @@ pub fn show_info(config: &WalletConfig, keychain: &Keychain) { if let Err(_) = result { println!( - "\nWARNING: Wallet failed to verify data. \ - The above is from local cache and possibly invalid! \ - (is your `grin server` offline or broken?)" + "\nWARNING: Failed to verify wallet contents with grin server. \ + Above info is maybe not fully updated or invalid! \ + Check that your `grin server` is OK, or see `wallet help restore`" ); } }