mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05:00
Throw joined errors if error is empty on commit
Fixes tpope/vim-fugitive#907
This commit is contained in:
@@ -1121,7 +1121,7 @@ function! s:Commit(args, ...) abort
|
|||||||
elseif error ==# '!'
|
elseif error ==# '!'
|
||||||
return s:Status()
|
return s:Status()
|
||||||
else
|
else
|
||||||
call s:throw(error)
|
call s:throw(empty(error)?join(errors, ' '):error)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
|
|||||||
Reference in New Issue
Block a user