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:
committed by
Ignotus Peverell
parent
bff92128e7
commit
40bc3386d5
@@ -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"),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user