diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-10-04 09:34:44 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-10-04 15:49:15 +0200 |
| commit | 738835d7b8ab80bd0812805f197471c54c72d7f9 (patch) | |
| tree | f5ac75781dada5de5b30d53ba17b7e0674c57e5a /src/rpcblockchain.cpp | |
| parent | Merge branch '2012_09_fixwformat' of github.com:laanwj/bitcoin (diff) | |
| download | discoin-738835d7b8ab80bd0812805f197471c54c72d7f9.tar.xz discoin-738835d7b8ab80bd0812805f197471c54c72d7f9.zip | |
Document RPC error codes
Replace all "magic values" in RPCError(...) by constants.
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]; |