From e5935c116570d2375c57242cf64fc2fd32d8cb01 Mon Sep 17 00:00:00 2001 From: gautaz Date: Mon, 8 May 2017 01:51:45 +0200 Subject: [PATCH] Throw joined errors if error is empty on commit Fixes tpope/vim-fugitive#907 --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8289368..52028c2 100644 --- 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:/