aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-09-15 08:56:01 +0200
committerselsta <selsta@sent.at>2021-09-15 08:57:41 +0200
commit3a90be4bd63656dfcdfe55e3606d8698fb8c0623 (patch)
tree9436752c099bd2c6ad2f93daa1c34075c88849cb
parentMerge pull request #7899 (diff)
downloadmonero-3a90be4bd63656dfcdfe55e3606d8698fb8c0623.tar.xz
rpc: don't set error code as status string
-rw-r--r--src/rpc/core_rpc_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index dbf0e12e5..602ed822f 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -2849,7 +2849,7 @@ namespace cryptonote
{
if (req.limit_down != -1)
{
- res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
+ res.status = "Invalid parameter";
return true;
}
epee::net_utils::connection_basic::set_rate_down_limit(nodetool::default_limit_down);
@@ -2863,7 +2863,7 @@ namespace cryptonote
{
if (req.limit_up != -1)
{
- res.status = CORE_RPC_ERROR_CODE_WRONG_PARAM;
+ res.status = "Invalid parameter";
return true;
}
epee::net_utils::connection_basic::set_rate_up_limit(nodetool::default_limit_up);