aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-06-01 10:35:07 +0200
committerJon Atack <jon@atack.com>2020-06-02 08:50:57 +0200
commit22cb303cf099b430d602384bc92706ce01b4f98d (patch)
tree33b99a95803fc11cfd652f24bcd85136b8bc169f
parentbf53ebef061a563cfc4c5857f5d6bc93fb136282 (diff)
downloadbitcoin-22cb303cf099b430d602384bc92706ce01b4f98d.tar.xz
rpc: add missing space in JSON parsing error message, update test
-rw-r--r--src/rpc/client.cpp2
-rwxr-xr-xtest/functional/interface_bitcoin_cli.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp
index 3045a74d7a..66ace7263a 100644
--- a/src/rpc/client.cpp
+++ b/src/rpc/client.cpp
@@ -217,7 +217,7 @@ UniValue ParseNonRFCJSONValue(const std::string& strVal)
UniValue jVal;
if (!jVal.read(std::string("[")+strVal+std::string("]")) ||
!jVal.isArray() || jVal.size()!=1)
- throw std::runtime_error(std::string("Error parsing JSON:")+strVal);
+ throw std::runtime_error(std::string("Error parsing JSON: ") + strVal);
return jVal[0];
}
diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py
index a7b54ba715..80003aca0d 100755
--- a/test/functional/interface_bitcoin_cli.py
+++ b/test/functional/interface_bitcoin_cli.py
@@ -19,7 +19,7 @@ from test_framework.util import (
BLOCKS = 101
BALANCE = (BLOCKS - 100) * 50
-JSON_PARSING_ERROR = 'error: Error parsing JSON:foo'
+JSON_PARSING_ERROR = 'error: Error parsing JSON: foo'
BLOCKS_VALUE_OF_ZERO = 'error: the first argument (number of blocks to generate, default: 1) must be an integer value greater than zero'
TOO_MANY_ARGS = 'error: too many arguments (maximum 2 for nblocks and maxtries)'
WALLET_NOT_LOADED = 'Requested wallet does not exist or is not loaded'