Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
| Show First 20 Lines • Show All 380 Lines • ▼ Show 20 Lines | try { | ||||
| strPrint = | strPrint = | ||||
| errCode.isNull() | errCode.isNull() | ||||
| ? "" | ? "" | ||||
| : "error code: " + errCode.getValStr() + "\n"; | : "error code: " + errCode.getValStr() + "\n"; | ||||
| if (errMsg.isStr()) { | if (errMsg.isStr()) { | ||||
| strPrint += "error message:\n" + errMsg.get_str(); | strPrint += "error message:\n" + errMsg.get_str(); | ||||
| } | } | ||||
| if (errCode.isNum() && | |||||
| errCode.get_int() == RPC_WALLET_NOT_SPECIFIED) { | |||||
| strPrint += "\nTry adding " | |||||
| "\"-rpcwallet=<filename>\" option to " | |||||
| "bitcoin-cli command line."; | |||||
| } | |||||
| } | } | ||||
| } else { | } else { | ||||
| // Result | // Result | ||||
| if (result.isNull()) { | if (result.isNull()) { | ||||
| strPrint = ""; | strPrint = ""; | ||||
| } else if (result.isStr()) { | } else if (result.isStr()) { | ||||
| strPrint = result.get_str(); | strPrint = result.get_str(); | ||||
| } else { | } else { | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||