mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06: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
|
try
|
||||||
exe 'edit ' . fnameescape(names[i])
|
exe 'edit ' . fnameescape(names[i])
|
||||||
catch
|
catch
|
||||||
call assert_report('cannot edit "' . names[i] . '": ' . v:errmsg)
|
call assert_report('cannot edit "' . names[i] . '": ' . v:exception)
|
||||||
endtry
|
endtry
|
||||||
call assert_equal(ft, &filetype, 'with file name: ' . names[i])
|
call assert_equal(ft, &filetype, 'with file name: ' . names[i])
|
||||||
bwipe!
|
bwipe!
|
||||||
|
Reference in New Issue
Block a user