Skip to content

Commit 3a1f1e2

Browse files
committed
Update Nvim error handling
Now errors sent from Nvim are [code, message] arrays, this adapts the error handling code to account for that.
1 parent b3e2db6 commit 3a1f1e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

neovim/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ def rpc_request(self, method, args, expected_type=None, decode_str=None):
9797
err, result = self.rpc_blocking_request(method, args, decode_str=decode_str)
9898

9999
if err:
100-
raise VimError(err)
100+
info("'Received error of type '%d'", err[0])
101+
raise VimError(err[1])
101102

102103
return result
103104

0 commit comments

Comments
 (0)