git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
279ab5e
)
throw JSONRPCError(-5, "Invalid bitcoin address") instead.
author
Matt Corallo
<matt@bluematt.me>
Sat, 5 Mar 2011 15:45:56 +0000 (16:45 +0100)
committer
Matt Corallo
<matt@bluematt.me>
Sat, 5 Mar 2011 15:45:56 +0000 (16:45 +0100)
rpc.cpp
patch
|
blob
|
history
diff --git
a/rpc.cpp
b/rpc.cpp
index
e01ea0e
..
dd94acc
100644
(file)
--- 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;