From 620a9064069dd7f9e15782c24a5260ad1b25b445 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 2 Aug 2019 19:50:20 -0400 Subject: 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) https://github.com/vim/vim/commit/eee9f65b2a213e9031f172d9d3b22adad6cb985d --- src/nvim/testdir/test_filetype.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 8193b8a265..e6d4933797 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -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! -- cgit