vim-patch:8.1.1775: error message may be empty in filetype test

Problem:    Error message may be empty in filetype test.
Solution:   Use v:exception instead. (Daniel Hahler, closs vim/vim#4744)
eee9f65b2a
This commit is contained in:
Jan Edmund Lazo
2019-08-02 19:50:20 -04:00
parent 12fe0cf5f9
commit 620a906406

View File

@@ -520,7 +520,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
call assert_equal(ft, &filetype, 'with file name: ' . names[i])
bwipe!