File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
neovim/msgpack_rpc/event_loop Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def connection_made(self, transport):
4444
4545 def connection_lost (self , exc ):
4646 """Used to signal `asyncio.Protocol` of a lost connection."""
47- self ._on_error (exc .message )
47+ self ._on_error (exc .message if exc else 'EOF' )
4848
4949 def data_received (self , data ):
5050 """Used to signal `asyncio.Protocol` of incoming data."""
@@ -53,9 +53,9 @@ def data_received(self, data):
5353 return
5454 self ._queued_data .append (data )
5555
56- def pipe_connection_lost (self , exc ):
56+ def pipe_connection_lost (self , fd , exc ):
5757 """Used to signal `asyncio.SubprocessProtocol` of a lost connection."""
58- self ._on_error (exc .message )
58+ self ._on_error (exc .message if exc else 'EOF' )
5959
6060 def pipe_data_received (self , fd , data ):
6161 """Used to signal `asyncio.SubprocessProtocol` of incoming data."""
You can’t perform that action at this time.
0 commit comments