show popup with message on error starting monero wallet

This commit is contained in:
woodser 2024-05-17 11:54:28 -04:00
parent ea0ce9b449
commit 82b8f58579
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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());
}
}