Disambiguate rpcSRC_ACT_NOT_FOUND errors so it's clear when it's the

secret that's at fault.
This commit is contained in:
JoelKatz
2013-02-19 13:48:46 -08:00
parent 637b7e5431
commit 7c7944a82c
3 changed files with 3 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ Json::Value RPCHandler::transactionSign(Json::Value jvRequest, bool bSubmit)
if (!bFound)
{
return rpcError(rpcSRC_ACT_NOT_FOUND);
return rpcError(rpcBAD_SECRET);
}
// Use the generator to determine the associated public and private keys.