From 90cbbf58549e541bf2567b69078735c5cc250fc3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 2 Apr 2017 17:04:02 -0400 Subject: [PATCH] Make unrecognized git type error more informative --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 66948f7..d534263 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2662,7 +2662,7 @@ function! s:BufReadObject() abort let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash) endif if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$' - return "echoerr 'fugitive: unrecognized git type'" + return "echoerr ".string("fugitive: unrecognized git type '".b:fugitive_type."'") endif let firstline = getline('.') if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'