User experience ux1 (#610)

* better error messages when `wallet restore` fails
* wallet info: show height, and where we got the height number from
* make "grin wallet listen" show some more lifesigns, so users can know it's running fine
This commit is contained in:
Simon B
2018-01-13 19:27:40 +01:00
committed by Ignotus Peverell
parent bff92128e7
commit 40bc3386d5
3 changed files with 21 additions and 20 deletions
+4 -3
View File
@@ -43,7 +43,8 @@ pub fn start_rest_apis(wallet_config: WalletConfig, keychain: Keychain) {
let mut apis = ApiServer::new("/v1".to_string());
apis.register_handler(router);
apis.start(wallet_config.api_listen_addr()).unwrap_or_else(|e| {
error!(LOGGER, "Failed to start Grin wallet receiver: {}.", e);
});
match apis.start(wallet_config.api_listen_addr()) {
Err(e) => error!(LOGGER, "Failed to start Grin wallet listener: {}.", e),
Ok(_) => info!(LOGGER, "Wallet listener started"),
};
}