| 56 | } |
| 57 | |
| 58 | UniValue JSONRPCError(int code, const string& message) |
| 59 | { |
| 60 | UniValue error(UniValue::VOBJ); |
| 61 | error.push_back(Pair("code", code)); |
| 62 | error.push_back(Pair("message", message)); |
| 63 | return error; |
| 64 | } |
| 65 | |
| 66 | /** Username used when cookie authentication is in use (arbitrary, only for |
| 67 | * recognizability in debugging/logging purposes) |
no test coverage detected