More accurate error message.

This commit is contained in:
Andy Stewart
2014-01-27 13:41:05 +01:00
parent f2e08dbeb3
commit 8ada986fcf
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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