0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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 #4744)
This commit is contained in:
Bram Moolenaar 2019-07-29 21:14:42 +02:00
parent 3c610c9638
commit eee9f65b2a
2 changed files with 3 additions and 1 deletions

View File

@ -521,7 +521,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
if &filetype == '' && &readonly
" File exists but not able to edit it (permission denied)

View File

@ -777,6 +777,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1775,
/**/
1774,
/**/