diff --git a/mq5/MtApi5.mq5 b/mq5/MtApi5.mq5 index b213a58e..453e2d05 100755 --- a/mq5/MtApi5.mq5 +++ b/mq5/MtApi5.mq5 @@ -1908,7 +1908,7 @@ string OnRequest(string json) return response; } -string CreateErrorResponse(int code, string message) +string CreateErrorResponse(int code, string message_er) { JSONValue* jsonError; if (code == 0) @@ -1916,13 +1916,13 @@ string CreateErrorResponse(int code, string message) else jsonError = new JSONNumber((long)code); - JSONObject *joResponse = new JSONObject(); + JSONObject *joResponse = new JSONObject(); joResponse.put("ErrorCode", jsonError); - joResponse.put("ErrorMessage", new JSONString(message)); + joResponse.put("ErrorMessage", new JSONString(message_er)); - string result = joResponse.toString(); - delete joResponse; - return result; + string result = joResponse.toString(); + delete joResponse; + return result; } string CreateSuccessResponse(string responseName, JSONValue* responseBody)