mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
WS: Error "missingCommand" should follow the same format as other errors.
This commit is contained in:
@@ -87,9 +87,14 @@ public:
|
|||||||
Json::Value jvResult(Json::objectValue);
|
Json::Value jvResult(Json::objectValue);
|
||||||
|
|
||||||
jvResult["type"] = "response";
|
jvResult["type"] = "response";
|
||||||
jvResult["result"] = "error";
|
jvResult["status"] = "error";
|
||||||
jvResult["error"] = "missingCommand";
|
jvResult["error"] = "missingCommand";
|
||||||
jvResult["command"] = jvRequest;
|
jvResult["request"] = jvRequest;
|
||||||
|
|
||||||
|
if (jvRequest.isMember("id"))
|
||||||
|
{
|
||||||
|
jvResult["id"] = jvRequest["id"];
|
||||||
|
}
|
||||||
|
|
||||||
return jvResult;
|
return jvResult;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user