mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-19 19:25:53 +00:00
return warnings in response instead of response.result (#182)
This commit is contained in:
@@ -436,7 +436,7 @@ handle_request(
|
|||||||
// reserialize only if a warning was appended.
|
// reserialize only if a warning was appended.
|
||||||
if (warningFlag)
|
if (warningFlag)
|
||||||
{
|
{
|
||||||
result["warning"] = warnings;
|
response["warning"] = warnings;
|
||||||
responseStr = boost::json::serialize(response);
|
responseStr = boost::json::serialize(response);
|
||||||
}
|
}
|
||||||
return send(
|
return send(
|
||||||
|
|||||||
@@ -344,8 +344,7 @@ public:
|
|||||||
// reserialize if a warning was appended
|
// reserialize if a warning was appended
|
||||||
if (warningFlag)
|
if (warningFlag)
|
||||||
{
|
{
|
||||||
auto& result = response["result"].as_object();
|
response["warning"] = warnings;
|
||||||
result["warning"] = warnings;
|
|
||||||
responseStr = boost::json::serialize(response);
|
responseStr = boost::json::serialize(response);
|
||||||
}
|
}
|
||||||
send(std::move(responseStr));
|
send(std::move(responseStr));
|
||||||
|
|||||||
Reference in New Issue
Block a user