From 0c0689a8884eb2af03d0e7375d4fbc310410da85 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 28 Feb 2020 12:32:05 +0100 Subject: [PATCH] fixed return code in unknown method handler --- src/wallet/plain_wallet_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index ecda3fbc..6103cf0c 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -273,7 +273,7 @@ namespace plain_wallet view::api_response ar = AUTO_VAL_INIT(ar); ar.error_code = "UNKNOWN METHOD"; put_result(job_id, epee::serialization::store_t_to_json(ar)); - return; + return std::string("{ \"job_id\": ") + std::to_string(job_id) + "}";; }