diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-11-16 11:00:33 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-11-16 11:00:33 -0600 |
commit | df9843212a12c9463f1ba421b92900b5fd9f3b3b (patch) | |
tree | 843139b278712d038d4b76dca7f1a3253402b808 /src/wallet | |
parent | Merge pull request #6107 (diff) | |
parent | wallet: set non-empty error string on connection failure (diff) | |
download | monero-df9843212a12c9463f1ba421b92900b5fd9f3b3b.tar.xz |
Merge pull request #6135
09f59ec wallet: set non-empty error string on connection failure (xiphon)
Diffstat (limited to 'src/wallet')
-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"); \ |