Re-raise errors that aren't expectd

This commit is contained in:
Ben Jackson 2020-07-11 14:42:35 +01:00
commit 0de023e3c4
2 changed files with 2 additions and 4 deletions

View file

@ -39,8 +39,6 @@ function! s:_OnEvent( chan_id, data, event ) abort
echom 'Channel exit with status ' . a:data
redraw
unlet s:job
" This causes terminal spam in neovim due to
" https://github.com/neovim/neovim/issues/11725
py3 _vimspector_session.OnServerExit( vim.eval( 'a:data' ) )
endif
endfunction

View file

@ -82,8 +82,8 @@ class CodeView( object ):
frame[ 'source' ][ 'path' ] ) )
except vim.error as e:
# Ignore 'invalid buffer name'
if 'E158' in str( e ):
pass
if 'E158' not in str( e ):
raise
if not self._window.valid:
return False