diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-12-07 13:29:06 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-12-17 09:39:24 +0100 |
commit | 27df4123c433e5ad4e5592f0a8fbc40ca933865b (patch) | |
tree | 90ca518364768b73da454b6f782130e13fd48ef3 /src/rpcrawtransaction.cpp | |
parent | 851dfc7f88d1b7c42534fffcfbdb2f1bcc473045 (diff) |
make all catch() arguments const
- I saw this on http://en.cppreference.com/w/cpp/language/try_catch and
thought it would be a good idea
- also unify used format to better be able to search for exception
uses in our codebase
Diffstat (limited to 'src/rpcrawtransaction.cpp')
-rw-r--r-- | src/rpcrawtransaction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 4a1af2207a..f596c358a9 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -545,7 +545,7 @@ Value signrawtransaction(const Array& params, bool fHelp) ssData >> tx; txVariants.push_back(tx); } - catch (const std::exception &) { + catch (const std::exception&) { throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed"); } } |