Throw joined errors if error is empty on commit
Fixes tpope/vim-fugitive#907
This commit is contained in:
parent
7ebe5c143d
commit
e5935c1165
@ -1121,7 +1121,7 @@ function! s:Commit(args, ...) abort
|
||||
elseif error ==# '!'
|
||||
return s:Status()
|
||||
else
|
||||
call s:throw(error)
|
||||
call s:throw(empty(error)?join(errors, ' '):error)
|
||||
endif
|
||||
endif
|
||||
catch /^fugitive:/
|
||||
|
Loading…
Reference in New Issue
Block a user