From 51c8fbcaf45025c7201a896e26f904a6ac3d2f09 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Thu, 7 Feb 2013 06:54:41 +0100 Subject: [PATCH] WS: Error "missingCommand" should follow the same format as other errors. --- src/cpp/ripple/WSConnection.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cpp/ripple/WSConnection.h b/src/cpp/ripple/WSConnection.h index d6fe475f49..6e2417fe12 100644 --- a/src/cpp/ripple/WSConnection.h +++ b/src/cpp/ripple/WSConnection.h @@ -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; }