aboutsummaryrefslogtreecommitdiff
path: root/src/test/rpc_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-12-17 17:34:20 +0100
committerWladimir J. van der Laan <[email protected]>2014-12-17 18:13:28 +0100
commit89802fe3eea857bae3a4f4f393de92af0915facd (patch)
tree90ca518364768b73da454b6f782130e13fd48ef3 /src/test/rpc_tests.cpp
parentMerge pull request #5488 (diff)
parentmake all catch() arguments const (diff)
downloaddiscoin-89802fe3eea857bae3a4f4f393de92af0915facd.tar.xz
discoin-89802fe3eea857bae3a4f4f393de92af0915facd.zip
Merge pull request #5438
27df412 make all catch() arguments const (Philip Kaufmann)
Diffstat (limited to 'src/test/rpc_tests.cpp')
-rw-r--r--src/test/rpc_tests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp
index d5475a92b..4826fae52 100644
--- a/src/test/rpc_tests.cpp
+++ b/src/test/rpc_tests.cpp
@@ -39,8 +39,7 @@ Value CallRPC(string args)
Value result = (*method)(params, false);
return result;
}
- catch (Object& objError)
- {
+ catch (const Object& objError) {
throw runtime_error(find_value(objError, "message").get_str());
}
}