diff options
author | Bert Peters <bert@bertptrs.nl> | 2019-11-14 10:36:49 +0100 |
---|---|---|
committer | Bert Peters <bert@bertptrs.nl> | 2019-11-14 10:36:49 +0100 |
commit | a7a40e285c7d006b6144de7e66c7cda3f630c25f (patch) | |
tree | bdff7d7a24d562f9ffde9f3de8d261f4fe9807b4 /src/rpc | |
parent | Merge pull request #6097 (diff) | |
download | monero-a7a40e285c7d006b6144de7e66c7cda3f630c25f.tar.xz |
Actually concatenate error strings.
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/daemon_handler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index d7e081af3..2dada5521 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -311,42 +311,42 @@ namespace rpc if (tvc.m_double_spend) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "double spend"; + res.error_details += "double spend"; } if (tvc.m_invalid_input) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "invalid input"; + res.error_details += "invalid input"; } if (tvc.m_invalid_output) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "invalid output"; + res.error_details += "invalid output"; } if (tvc.m_too_big) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "too big"; + res.error_details += "too big"; } if (tvc.m_overspend) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "overspend"; + res.error_details += "overspend"; } if (tvc.m_fee_too_low) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "fee too low"; + res.error_details += "fee too low"; } if (tvc.m_not_rct) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "tx is not ringct"; + res.error_details += "tx is not ringct"; } if (tvc.m_too_few_outputs) { if (!res.error_details.empty()) res.error_details += " and "; - res.error_details = "too few outputs"; + res.error_details += "too few outputs"; } if (res.error_details.empty()) { |