aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2012-10-04 17:17:53 -0700
committerPieter Wuille <[email protected]>2012-10-04 17:17:53 -0700
commit39930ca6ae5ca00f62ad11d903626e0d4354c87c (patch)
treeb2fcb63f1b76462c7c8a26c28e84605a1b851b54 /src/rpcblockchain.cpp
parentMerge pull request #1907 from laanwj/2012_10_translations (diff)
parentAdd constants for HTTP status codes (diff)
downloaddiscoin-39930ca6ae5ca00f62ad11d903626e0d4354c87c.tar.xz
discoin-39930ca6ae5ca00f62ad11d903626e0d4354c87c.zip
Merge pull request #1908 from laanwj/2012_10_rpcerrors
Document RPC error codes
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 5469dd295..2dfdf5842 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];