mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
More accurate error message.
This commit is contained in:
@@ -40,7 +40,7 @@ function! diff#run_diff(realtime, use_external_grep)
|
|||||||
if v:shell_error
|
if v:shell_error
|
||||||
" A shell error indicates the file is not tracked by git (unless something
|
" A shell error indicates the file is not tracked by git (unless something
|
||||||
" bizarre is going on).
|
" bizarre is going on).
|
||||||
throw 'git-diff failed'
|
throw 'diff failed'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return diff
|
return diff
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ function! GitGutter(file, realtime)
|
|||||||
|
|
||||||
call utility#save_last_seen_change(a:file)
|
call utility#save_last_seen_change(a:file)
|
||||||
endif
|
endif
|
||||||
catch /git-diff failed/
|
catch /diff failed/
|
||||||
call hunk#reset()
|
call hunk#reset()
|
||||||
endtry
|
endtry
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user