vim-patch:8.2.0404: writefile() error does not give a hint

Problem:    Writefile() error does not give a hint.
Solution:   Add remark about first argument.
18a2b87ca2
This commit is contained in:
Sean Dewar
2021-08-02 15:27:06 +01:00
parent 53f28f024c
commit ba34afb378
3 changed files with 5 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ func Test_writefile()
call assert_equal("morning", l[3])
call assert_equal("vimmers", l[4])
call delete(f)
call assert_fails('call writefile("text", "Xfile")', 'E475: Invalid argument: writefile() first argument must be a List or a Blob')
endfunc
func Test_writefile_ignore_regexp_error()