diff options
| author | Pieter Wuille <[email protected]> | 2012-10-04 17:17:53 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-10-04 17:17:53 -0700 |
| commit | 39930ca6ae5ca00f62ad11d903626e0d4354c87c (patch) | |
| tree | b2fcb63f1b76462c7c8a26c28e84605a1b851b54 /src/rpcblockchain.cpp | |
| parent | Merge pull request #1907 from laanwj/2012_10_translations (diff) | |
| parent | Add constants for HTTP status codes (diff) | |
| download | discoin-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.cpp | 2 |
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]; |