WS: Error "missingCommand" should follow the same format as other errors.

This commit is contained in:
Stefan Thomas
2013-02-07 06:54:41 +01:00
parent 55526c378c
commit 51c8fbcaf4

View File

@@ -87,9 +87,14 @@ public:
Json::Value jvResult(Json::objectValue);
jvResult["type"] = "response";
jvResult["result"] = "error";
jvResult["status"] = "error";
jvResult["error"] = "missingCommand";
jvResult["command"] = jvRequest;
jvResult["request"] = jvRequest;
if (jvRequest.isMember("id"))
{
jvResult["id"] = jvRequest["id"];
}
return jvResult;
}