Skip to content

Commit 22cb303

Browse files
committed
rpc: add missing space in JSON parsing error message, update test
1 parent bf53ebe commit 22cb303

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rpc/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ UniValue ParseNonRFCJSONValue(const std::string& strVal)
217217
UniValue jVal;
218218
if (!jVal.read(std::string("[")+strVal+std::string("]")) ||
219219
!jVal.isArray() || jVal.size()!=1)
220-
throw std::runtime_error(std::string("Error parsing JSON:")+strVal);
220+
throw std::runtime_error(std::string("Error parsing JSON: ") + strVal);
221221
return jVal[0];
222222
}
223223

test/functional/interface_bitcoin_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
BLOCKS = 101
2020
BALANCE = (BLOCKS - 100) * 50
2121

22-
JSON_PARSING_ERROR = 'error: Error parsing JSON:foo'
22+
JSON_PARSING_ERROR = 'error: Error parsing JSON: foo'
2323
BLOCKS_VALUE_OF_ZERO = 'error: the first argument (number of blocks to generate, default: 1) must be an integer value greater than zero'
2424
TOO_MANY_ARGS = 'error: too many arguments (maximum 2 for nblocks and maxtries)'
2525
WALLET_NOT_LOADED = 'Requested wallet does not exist or is not loaded'

0 commit comments

Comments
 (0)