Give up when job id is problematic.

This commit is contained in:
Andy Stewart
2016-04-25 10:30:24 +01:00
parent 5ed00d1bd3
commit 52d1167d7d

View File

@@ -134,6 +134,9 @@ function! gitgutter#diff#run_diff(realtime, preserve_full_diff)
\ 'on_stderr': function('gitgutter#handle_diff_job'),
\ 'on_exit': function('gitgutter#handle_diff_job')
\ })
if job_id < 1
throw 'diff failed'
endif
call gitgutter#utility#pending_job(job_id)
return 'async'
else