mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-16 15:58:08 +00:00
show popup with message on error starting monero wallet
This commit is contained in:
parent
ea0ce9b449
commit
82b8f58579
2 changed files with 2 additions and 4 deletions
|
@ -649,9 +649,6 @@ public final class XmrConnectionService {
|
|||
log.info("Successfully fetched daemon info after previous error");
|
||||
lastErrorTimestamp = null;
|
||||
}
|
||||
|
||||
// clear error message
|
||||
if (HavenoUtils.havenoSetup != null) HavenoUtils.havenoSetup.getWalletServiceErrorMsg().set(null);
|
||||
} catch (Exception e) {
|
||||
|
||||
// not connected to daemon
|
||||
|
|
|
@ -1321,6 +1321,7 @@ public class XmrWalletService {
|
|||
} catch (Exception e) {
|
||||
log.warn("Error initializing main wallet: " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
HavenoUtils.havenoSetup.getWalletServiceErrorMsg().set(e.getMessage());
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
@ -1592,7 +1593,7 @@ public class XmrWalletService {
|
|||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (walletRpc != null) forceCloseWallet(walletRpc, config.getPath());
|
||||
throw new IllegalStateException("Could not open wallet '" + config.getPath() + "'. Please close Haveno, stop all monero-wallet-rpc processes, and restart Haveno.");
|
||||
throw new IllegalStateException("Could not open wallet '" + config.getPath() + "'. Please close Haveno, stop all monero-wallet-rpc processes, and restart Haveno.\n\nError message: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue