From deb6fd670479b2e00b99481ce59fdc187408d99d Mon Sep 17 00:00:00 2001 From: Alisue Date: Sun, 6 Aug 2023 23:25:42 +0900 Subject: [PATCH] feat(msgpack-rpc): show actual request id in error message --- src/nvim/msgpack_rpc/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 1772b0497b..a80424d78b 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -326,8 +326,8 @@ static void parse_msgpack(Channel *channel) char buf[256]; snprintf(buf, sizeof(buf), "ch %" PRIu64 " returned a response with an unknown request " - "id. Ensure the client is properly synchronized", - channel->id); + "id %" PRIu32 ". Ensure the client is properly synchronized", + channel->id, p->request_id); chan_close_with_error(channel, buf, LOGLVL_ERR); } frame->returned = true;