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
|
||||
" A shell error indicates the file is not tracked by git (unless something
|
||||
" bizarre is going on).
|
||||
throw 'git-diff failed'
|
||||
throw 'diff failed'
|
||||
endif
|
||||
|
||||
return diff
|
||||
|
||||
@@ -76,7 +76,7 @@ function! GitGutter(file, realtime)
|
||||
|
||||
call utility#save_last_seen_change(a:file)
|
||||
endif
|
||||
catch /git-diff failed/
|
||||
catch /diff failed/
|
||||
call hunk#reset()
|
||||
endtry
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user