Skip to content

Commit

Permalink
Use existing RPC_INVALID_PARAMETER constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranz5 committed May 23, 2014
1 parent 7e19469 commit a2e14a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ Value keypoolrefill(const Array& params, bool fHelp)
unsigned int nSize = max(GetArg("-keypool", 100), 0LL);
if (params.size() > 0) {
if (params[0].get_int() < 0)
throw JSONRPCError(-8, "Invalid parameter, expected valid size");
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected valid size");
nSize = (unsigned int) params[0].get_int();
}

Expand Down

0 comments on commit a2e14a0

Please sign in to comment.