patch 9.0.0345: error message for list argument could be clearer
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
diff --git a/src/testdir/test_ins_complete.vim b/src/testdir/test_ins_complete.vim
index 41998aa..cee6a32 100644
--- a/src/testdir/test_ins_complete.vim
+++ b/src/testdir/test_ins_complete.vim
@@ -673,14 +673,14 @@
func ListColors()
call complete(col('.'), "blue")
endfunc
- call assert_fails('exe "normal i\<C-R>=ListColors()\<CR>"', 'E474:')
+ call assert_fails('exe "normal i\<C-R>=ListColors()\<CR>"', 'E1211:')
func ListMonths()
call complete(col('.'), test_null_list())
endfunc
- call assert_fails('exe "normal i\<C-R>=ListMonths()\<CR>"', 'E474:')
+ call assert_fails('exe "normal i\<C-R>=ListMonths()\<CR>"', 'E1298:')
delfunc ListColors
delfunc ListMonths
- call assert_fails('call complete_info({})', 'E714:')
+ call assert_fails('call complete_info({})', 'E1211:')
call assert_equal([], complete_info(['items']).items)
endfunc