mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
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:
@@ -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!
|
||||
|
Reference in New Issue
Block a user