mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Clearer errors
This commit is contained in:
@@ -376,7 +376,7 @@ function! fugitive#repo(...) abort
|
||||
endif
|
||||
return extend(repo, s:repo_prototype, 'keep')
|
||||
endif
|
||||
call s:throw('not a git repository: '.expand('%:p'))
|
||||
call s:throw('not a Git repository: ' . string(dir))
|
||||
endfunction
|
||||
|
||||
function! s:repo_dir(...) dict abort
|
||||
@@ -1098,7 +1098,7 @@ function! fugitive#buffer(...) abort
|
||||
if buffer.getvar('git_dir') !=# ''
|
||||
return buffer
|
||||
endif
|
||||
call s:throw('not a git repository: '.bufname(buffer['#']))
|
||||
call s:throw('not a Fugitive buffer: ' . string(bufname(buffer['#'])))
|
||||
endfunction
|
||||
|
||||
function! s:buffer_getvar(var) dict abort
|
||||
|
||||
Reference in New Issue
Block a user