]> granicus.if.org Git - vim/commitdiff
patch 8.1.1775: error message may be empty in filetype test v8.1.1775
authorBram Moolenaar <Bram@vim.org>
Mon, 29 Jul 2019 19:14:42 +0000 (21:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 29 Jul 2019 19:14:42 +0000 (21:14 +0200)
Problem:    Error message may be empty in filetype test.
Solution:   Use v:exception instead. (Daniel Hahler, closs #4744)

src/testdir/test_filetype.vim
src/version.c

index 8b668c7a269557358d98a6a7e95ad69e4c2aefd7..92a52057328734bf9986fbdcf589f4a47559eebb 100644 (file)
@@ -521,7 +521,7 @@ func CheckItems(checks)
       try
         exe 'edit ' . fnameescape(names[i])
       catch
-       call assert_report('cannot edit "' . names[i] . '": ' . v:errmsg)
+       call assert_report('cannot edit "' . names[i] . '": ' . v:exception)
       endtry
       if &filetype == '' && &readonly
        " File exists but not able to edit it (permission denied)
index 8a3923ee2de05c6a372c32d2ea1ba57f2b62f5cd..1043275a78f7c2464b309b36198ba8d3e2f51060 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1775,
 /**/
     1774,
 /**/