Add missing "catch all exceptions" clause
This commit is contained in:
parent
ea87e05e6f
commit
412ae37d93
@ -99,6 +99,7 @@ function! sy#repo#get_diff_start(vcs) abort
|
||||
\ 'close_cb': function('s:callback_vim_close', options),
|
||||
\ }
|
||||
let b:sy_job_id_{a:vcs} = job_start(cmd, opts)
|
||||
catch
|
||||
finally
|
||||
execute chdir fnameescape(cwd)
|
||||
endtry
|
||||
|
Loading…
Reference in New Issue
Block a user