Skip to content

Commit

Permalink
fix(handler): catch all errors
Browse files Browse the repository at this point in the history
Related to #44
  • Loading branch information
rcarriga committed Jun 9, 2021
1 parent d864a6b commit 47bef35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload/ultest/handler.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ function! s:Call(func, args) abort
echom "Error: vim-ultest remote function not detected, try running :UpdateRemotePlugins on install/update"
let s:update_warn_sent += 1
endif
catch
" Send twice because first one isn't shown if triggered during startup
if s:update_warn_sent < 2
echom "Error: vim-ultest encountered an unknown error on startup, check v:exception"
let s:update_warn_sent += 1
endif
endtry
endtry
else
let args = copy(a:args)
Expand Down

0 comments on commit 47bef35

Please sign in to comment.