forked from aniani/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 #4744)
This commit is contained in:
@@ -521,7 +521,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
|
||||||
if &filetype == '' && &readonly
|
if &filetype == '' && &readonly
|
||||||
" File exists but not able to edit it (permission denied)
|
" File exists but not able to edit it (permission denied)
|
||||||
|
@@ -777,6 +777,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1775,
|
||||||
/**/
|
/**/
|
||||||
1774,
|
1774,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user