From aef9f2b2acd8aa40e1f479465721929ddff0652c Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Sat, 9 Apr 2022 11:54:21 -0300 Subject: [PATCH] remove final dot from error msg --- src/rpc/misc.cpp | 2 +- src/test/rpc_tests.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 782e9788a..c2c60f8c2 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -825,7 +825,7 @@ static void getHeightRange(const UniValue& params, int& start, int& end) } if (end < start) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, - "End value is expected to be greater than or equal to start."); + "End value is expected to be greater than or equal to start"); } } } diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index e511b2f62..363edeeb6 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -366,7 +366,7 @@ BOOST_AUTO_TEST_CASE(rpc_insightexplorer) CheckRPCThrows("getaddressdeltas {\"addresses\":[],\"start\":0,\"end\":0,\"chainInfo\":true}", "Start and end are expected to be greater than zero"); CheckRPCThrows("getaddressdeltas {\"addresses\":[],\"start\":3,\"end\":2,\"chainInfo\":true}", - "End value is expected to be greater than or equal to start."); + "End value is expected to be greater than or equal to start"); // in this test environment, only the genesis block (0) exists CheckRPCThrows("getaddressdeltas {\"addresses\":[],\"start\":2,\"end\":3,\"chainInfo\":true}", "Start or end is outside chain range"); @@ -377,7 +377,7 @@ BOOST_AUTO_TEST_CASE(rpc_insightexplorer) CheckRPCThrows("getaddresstxids {\"addresses\":[],\"start\":0,\"end\":0,\"chainInfo\":true}", "Start and end are expected to be greater than zero"); CheckRPCThrows("getaddresstxids {\"addresses\":[],\"start\":3,\"end\":2,\"chainInfo\":true}", - "End value is expected to be greater than or equal to start."); + "End value is expected to be greater than or equal to start"); // in this test environment, only the genesis block (0) exists CheckRPCThrows("getaddresstxids {\"addresses\":[],\"start\":2,\"end\":3,\"chainInfo\":true}", "Start or end is outside chain range");