Parse UniValue result to update the message to print to std::cout. */
| 868 | |
| 869 | /** Parse UniValue result to update the message to print to std::cout. */ |
| 870 | static void ParseResult(const UniValue& result, std::string& strPrint) |
| 871 | { |
| 872 | if (result.isNull()) return; |
| 873 | strPrint = result.isStr() ? result.get_str() : result.write(2); |
| 874 | } |
| 875 | |
| 876 | /** Parse UniValue error to update the message to print to std::cerr and the code to return. */ |
| 877 | static void ParseError(const UniValue& error, std::string& strPrint, int& nRet) |
no test coverage detected