diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-02 19:50:20 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-02 19:51:04 -0400 |
commit | 620a9064069dd7f9e15782c24a5260ad1b25b445 (patch) | |
tree | 9bbd824cedeb263e54c19cba0e4bd87e73ca6568 | |
parent | 12fe0cf5f9a56a71394ebf35a0ba9f4efc7e1702 (diff) | |
download | rneovim-620a9064069dd7f9e15782c24a5260ad1b25b445.tar.gz rneovim-620a9064069dd7f9e15782c24a5260ad1b25b445.tar.bz2 rneovim-620a9064069dd7f9e15782c24a5260ad1b25b445.zip |
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
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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! |