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 ==# '!'
|
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:/
|
||||||
|
Loading…
Reference in New Issue
Block a user