mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'master' of github.com:jedmccaleb/NewCoin
This commit is contained in:
@@ -89,15 +89,13 @@ Json::Value RPCServer::RPCError(int iError)
|
|||||||
|
|
||||||
Json::Value jsonResult = Json::Value(Json::objectValue);
|
Json::Value jsonResult = Json::Value(Json::objectValue);
|
||||||
|
|
||||||
jsonResult["error"] = iError;
|
jsonResult["error"] = i >= 0 ? errorInfoA[i].pToken : boost::lexical_cast<std::string>(iError);
|
||||||
if (i >= 0) {
|
jsonResult["error_message"] = i >= 0 ? errorInfoA[i].pMessage : boost::lexical_cast<std::string>(iError);
|
||||||
|
jsonResult["error_code"] = iError;
|
||||||
|
if (i >= 0)
|
||||||
std::cerr << "RPCError: "
|
std::cerr << "RPCError: "
|
||||||
<< errorInfoA[i].pToken << ": " << errorInfoA[i].pMessage << std::endl;
|
<< errorInfoA[i].pToken << ": " << errorInfoA[i].pMessage << std::endl;
|
||||||
|
|
||||||
jsonResult["error_token"] = errorInfoA[i].pToken;
|
|
||||||
jsonResult["error_message"] = errorInfoA[i].pMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
return jsonResult;
|
return jsonResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user