feat(msgpack-rpc): show actual request id in error message

This commit is contained in:
Alisue 2023-08-06 23:25:42 +09:00
parent 5bb17958c5
commit deb6fd6704
No known key found for this signature in database
GPG Key ID: 74D5B4A7F3E1B28C

View File

@ -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;