Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 3dc2c48

Browse files
committed
msgpack_rpc_stream: use a string.format() that's valid
Functions and tables can't be formatted using %s
1 parent 659d082 commit 3dc2c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvim/msgpack_rpc_stream.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function MsgpackRpcStream:read_start(request_cb, notification_cb, eof_cb)
133133
notification_cb(method_or_error, args_or_result)
134134
end
135135
elseif type_ == 'response' then
136-
self._previous_chunk = string.format('response<%s,%s>', id_or_cb, args_or_result)
136+
self._previous_chunk = string.format('response<%s>', type(args_or_result))
137137
if method_or_error == mpack.NIL then
138138
method_or_error = nil
139139
else

0 commit comments

Comments
 (0)