MT#61856 control_ng: correct decode JSON error string

Seems to be a copy-paste typo. Just is misleading.

Change-Id: I6d32c9b1a4af5928de82129caca99d509cddcc0b
pull/1126/merge
Donat Zenichev 1 month ago
parent a7a46e3124
commit ab534f3412

@ -727,7 +727,7 @@ static void control_ng_process_payload(ng_ctx *hctx, str *reply, str *data, cons
goto err_send;
}
command_ctx.req.json = json_parser_get_root(command_ctx.ngbuf->json);
errstr = "Could not decode bencode dictionary";
errstr = "Could not decode JSON dictionary";
if (!command_ctx.req.json || !ng_parser_json.is_dict(command_ctx.req)) {
command_ctx.resp = parser->dict(&command_ctx.parser_ctx);
assert(command_ctx.resp.gen != NULL);

Loading…
Cancel
Save