diff --git a/autoload/diff.vim b/autoload/diff.vim index 2367390..b7bfceb 100644 --- a/autoload/diff.vim +++ b/autoload/diff.vim @@ -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 diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 7daf185..050b44f 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -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