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.
|
||||
if (warningFlag)
|
||||
{
|
||||
result["warning"] = warnings;
|
||||
response["warning"] = warnings;
|
||||
responseStr = boost::json::serialize(response);
|
||||
}
|
||||
return send(
|
||||
|
||||
@@ -344,8 +344,7 @@ public:
|
||||
// reserialize if a warning was appended
|
||||
if (warningFlag)
|
||||
{
|
||||
auto& result = response["result"].as_object();
|
||||
result["warning"] = warnings;
|
||||
response["warning"] = warnings;
|
||||
responseStr = boost::json::serialize(response);
|
||||
}
|
||||
send(std::move(responseStr));
|
||||
|
||||
Reference in New Issue
Block a user