move version specifier to Build.h

This commit is contained in:
Nathan Nichols
2022-05-25 16:05:09 -05:00
committed by Michael Legleux
parent af575b1bcf
commit 458fac776c
12 changed files with 142 additions and 6 deletions

View File

@@ -106,6 +106,14 @@ make_error(Error err)
boost::json::object
make_error(Status const& status)
{
if (status.error == ripple::rpcUNKNOWN)
{
return {
{"error", status.message},
{"type", "response"},
{"status", "error"}};
}
boost::json::object json;
ripple::RPC::ErrorInfo const& info(
ripple::RPC::get_error_info(status.error));