mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
include searched_all in error response of tx (#407)
This commit is contained in:
@@ -106,7 +106,7 @@ makeError(Status const& status)
|
||||
return str.empty() ? nullopt : make_optional(str);
|
||||
};
|
||||
|
||||
return visit(
|
||||
auto res = visit(
|
||||
overloadSet{
|
||||
[&status, &wrapOptional](RippledError err) {
|
||||
if (err == ripple::rpcUNKNOWN)
|
||||
@@ -130,6 +130,14 @@ makeError(Status const& status)
|
||||
},
|
||||
},
|
||||
status.code);
|
||||
if (status.extraInfo)
|
||||
{
|
||||
for (auto& [key, value] : status.extraInfo.value())
|
||||
{
|
||||
res[key] = value;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
} // namespace RPC
|
||||
|
||||
Reference in New Issue
Block a user