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

Commit

Permalink
msgpack_rpc_stream: use a string.format() that's valid
Browse files Browse the repository at this point in the history
Functions and tables can't be formatted using %s
  • Loading branch information
phodge committed Jul 9, 2018
1 parent 659d082 commit 3dc2c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/msgpack_rpc_stream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function MsgpackRpcStream:read_start(request_cb, notification_cb, eof_cb)
notification_cb(method_or_error, args_or_result)
end
elseif type_ == 'response' then
self._previous_chunk = string.format('response<%s,%s>', id_or_cb, args_or_result)
self._previous_chunk = string.format('response<%s>', type(args_or_result))
if method_or_error == mpack.NIL then
method_or_error = nil
else
Expand Down

0 comments on commit 3dc2c48

Please sign in to comment.