From e0a49f875a64b3ad151594b8ef8f7021f18a71c4 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Tue, 8 Jan 2013 18:59:59 -0800 Subject: [PATCH] Fix more RPC error reporting. --- src/cpp/ripple/RPCHandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index d92163868..dd2c98a56 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -88,7 +88,7 @@ Json::Value RPCHandler::authorize(Ledger::ref lrLedger, asSrc = mNetOps->getAccountState(lrLedger, naSrcAccountID); if (!asSrc) { - return rpcError(rpcSRC_ACT_MISSING); + return rpcError(rpcSRC_ACT_NOT_FOUND); } RippleAddress naMasterGenerator; @@ -1036,7 +1036,7 @@ Json::Value RPCHandler::doSubmit(Json::Value jvRequest) if (!sleAccountRoot) { // XXX Ignore transactions for accounts not created. - return rpcError(rpcSRC_ACT_MISSING); + return rpcError(rpcSRC_ACT_NOT_FOUND); } bool bHaveAuthKey = false; @@ -1065,7 +1065,7 @@ Json::Value RPCHandler::doSubmit(Json::Value jvRequest) if (!bFound) { - return rpcError(rpcSRC_ACT_MISSING); + return rpcError(rpcSRC_ACT_NOT_FOUND); } // Use the generator to determine the associated public and private keys. @@ -1083,7 +1083,7 @@ Json::Value RPCHandler::doSubmit(Json::Value jvRequest) // std::cerr << "sfAuthorizedKey: " << strHex(asSrc->getAuthorizedKey().getAccountID()) << std::endl; // std::cerr << "naAccountPublic: " << strHex(naAccountPublic.getAccountID()) << std::endl; - return rpcError(rpcSRC_ACT_MISSING); + return rpcError(rpcSRC_ACT_NOT_FOUND); } std::auto_ptr sopTrans;