Parse UniValue result to update the message to print to std::cout. */
| 1324 | |
| 1325 | /** Parse UniValue result to update the message to print to std::cout. */ |
| 1326 | static void ParseResult(const UniValue& result, std::string& strPrint) |
| 1327 | { |
| 1328 | if (result.isNull()) return; |
| 1329 | strPrint = result.isStr() ? result.get_str() : result.write(2); |
| 1330 | } |
| 1331 | |
| 1332 | /** Parse UniValue error to update the message to print to std::cerr and the code to return. */ |
| 1333 | static void ParseError(const UniValue& error, std::string& strPrint, int& nRet) |
no test coverage detected