aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-10-04 09:34:44 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2012-10-04 15:49:15 +0200
commit738835d7b8ab80bd0812805f197471c54c72d7f9 (patch)
treef5ac75781dada5de5b30d53ba17b7e0674c57e5a /src/rpcblockchain.cpp
parent0547b02af78dcf2d84e4905b56c7f95d9582b2f9 (diff)
Document RPC error codes
Replace all "magic values" in RPCError(...) by constants.
Diffstat (limited to 'src/rpcblockchain.cpp')
-rw-r--r--src/rpcblockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp
index 5469dd2952..2dfdf58422 100644
--- a/src/rpcblockchain.cpp
+++ b/src/rpcblockchain.cpp
@@ -150,7 +150,7 @@ Value getblock(const Array& params, bool fHelp)
uint256 hash(strHash);
if (mapBlockIndex.count(hash) == 0)
- throw JSONRPCError(-5, "Block not found");
+ throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Block not found");
CBlock block;
CBlockIndex* pblockindex = mapBlockIndex[hash];