mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
rpc: add missing space in JSON parsing error message, update test
This commit is contained in:
parent
bf53ebef06
commit
22cb303cf0
2 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue