commit e5935c116570d2375c57242cf64fc2fd32d8cb01 (tree)
parent 7ebe5c143dcda62e5a66891322b7cd66470841c4
Author: gautaz <gautaz@users.noreply.github.com>
Date: Mon, 8 May 2017 01:51:45 +0200
Throw joined errors if error is empty on commit
Fixes tpope/vim-fugitive#907
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -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:/