mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor away RPCHandler::doRpcCommand
This commit is contained in:
committed by
Vinnie Falco
parent
fc9a23d6d4
commit
c72db5fa5f
@@ -71,5 +71,23 @@ void Status::fillJson (Json::Value& value)
|
||||
}
|
||||
}
|
||||
|
||||
std::string Status::message() const {
|
||||
std::string result;
|
||||
for (auto& m: messages_)
|
||||
{
|
||||
if (!result.empty())
|
||||
result += '/';
|
||||
result += m;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string Status::toString() const {
|
||||
if (*this)
|
||||
return codeString() + ":" + message();
|
||||
return "";
|
||||
}
|
||||
|
||||
} // namespace RPC
|
||||
} // ripple
|
||||
|
||||
Reference in New Issue
Block a user