aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-11-30 17:00:20 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-11-30 17:00:20 -0500
commit55fc2335a475f898ce3dc675e7909a551c8e8597 (patch)
treed5217f77a0f5e916509de5e04c8ffd212eeeb81d /src
parentMerge pull request #7910 (diff)
parentrpc: don't set error code as status string (diff)
downloadmonero-55fc2335a475f898ce3dc675e7909a551c8e8597.tar.xz
Merge pull request #7943
3a90be4 rpc: don't set error code as status string (selsta)
Diffstat (limited to 'src')
-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 98faac68b..e114ea7c6 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -2935,7 +2935,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);
@@ -2949,7 +2949,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);