diff options
author | xiphon <xiphon@protonmail.com> | 2019-11-14 19:49:57 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2019-11-15 13:09:02 +0000 |
commit | 2a8953c0192792ac51fdcbfb78978a4ccc594811 (patch) | |
tree | c141fdef46991ef53cf6939c10ec2425ceee21c7 | |
parent | Merge pull request #6098 (diff) | |
download | monero-2a8953c0192792ac51fdcbfb78978a4ccc594811.tar.xz |
wallet: set non-empty error string on connection failure
-rw-r--r-- | src/wallet/node_rpc_proxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/node_rpc_proxy.cpp b/src/wallet/node_rpc_proxy.cpp index 15ea26044..005b0bafa 100644 --- a/src/wallet/node_rpc_proxy.cpp +++ b/src/wallet/node_rpc_proxy.cpp @@ -36,7 +36,7 @@ do { \ CHECK_AND_ASSERT_MES(error.code == 0, error.message, error.message); \ handle_payment_changes(res, std::integral_constant<bool, HasCredits<decltype(res)>::Has>()); \ - CHECK_AND_ASSERT_MES(r, std::string(), "Failed to connect to daemon"); \ + CHECK_AND_ASSERT_MES(r, std::string("Failed to connect to daemon"), "Failed to connect to daemon"); \ /* empty string -> not connection */ \ CHECK_AND_ASSERT_MES(!res.status.empty(), res.status, "No connection to daemon"); \ CHECK_AND_ASSERT_MES(res.status != CORE_RPC_STATUS_BUSY, res.status, "Daemon busy"); \ |