From c1f74f152b278ca11390519fded87c09e7f05437 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 5 Mar 2011 16:45:56 +0100 Subject: [PATCH] throw JSONRPCError(-5, "Invalid bitcoin address") instead. --- rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.cpp b/rpc.cpp index e01ea0e3..dd94acc0 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;