Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115818
D9950.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D9950.diff
View Options
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp
--- a/src/rpc/client.cpp
+++ b/src/rpc/client.cpp
@@ -204,7 +204,7 @@
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
--- a/test/functional/interface_bitcoin_cli.py
+++ b/test/functional/interface_bitcoin_cli.py
@@ -19,7 +19,7 @@
BLOCKS = 101
BALANCE = (BLOCKS - 100) * 50000000
-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'
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 12:10 (4 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187796
Default Alt Text
D9950.diff (1 KB)
Attached To
D9950: rpc: add missing space in JSON parsing error message, update test
Event Timeline
Log In to Comment