Skip to content

Commit a31d75e

Browse files
committed
Elaborate error messages for outdated options
1 parent 35ed094 commit a31d75e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wallet/rpc/spend.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ static void PreventOutdatedOptions(const UniValue& options)
5858
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use fee_rate (" + CURRENCY_ATOM + "/vB) instead of feeRate");
5959
}
6060
if (options.exists("changeAddress")) {
61-
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_address");
61+
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_address instead of changeAddress");
6262
}
6363
if (options.exists("changePosition")) {
64-
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_position");
64+
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use change_position instead of changePosition");
6565
}
6666
if (options.exists("includeWatching")) {
67-
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use include_watching");
67+
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use include_watching instead of includeWatching");
6868
}
6969
if (options.exists("lockUnspents")) {
70-
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use lock_unspents");
70+
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use lock_unspents instead of lockUnspents");
7171
}
7272
if (options.exists("subtractFeeFromOutputs")) {
73-
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use subtract_fee_from_outputs");
73+
throw JSONRPCError(RPC_INVALID_PARAMETER, "Use subtract_fee_from_outputs instead of subtractFeeFromOutputs");
7474
}
7575
}
7676

0 commit comments

Comments
 (0)