Throw joined errors if error is empty on commit

Fixes tpope/vim-fugitive#907
This commit is contained in:
gautaz 2017-05-08 01:51:45 +02:00 committed by Tim Pope
parent 7ebe5c143d
commit e5935c1165

View File

@ -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:/