aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-03-05 16:45:56 +0100
committerMatt Corallo <matt@bluematt.me>2011-03-05 16:45:56 +0100
commitc1f74f152b278ca11390519fded87c09e7f05437 (patch)
treee0bf81411e4b05210a95811d00ca8aa5939657a9
parent279ab5e62f4e4344061d54b341d8d36af874fb88 (diff)
throw JSONRPCError(-5, "Invalid bitcoin address") instead.
-rw-r--r--rpc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc.cpp b/rpc.cpp
index e01ea0e3b6..dd94acc050 100644
--- a/rpc.cpp
+++ b/rpc.cpp
@@ -384,7 +384,7 @@ Value setaccount(const Array& params, bool fHelp)
uint160 hash160;
bool isValid = AddressToHash160(strAddress, hash160);
if (!isValid)
- throw runtime_error("provided address is not valid");
+ throw JSONRPCError(-5, "Invalid bitcoin address");
string strAccount;