mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
vim-patch:8.1.0793: incorrect error messages for functions that take a Blob
Problem: Incorrect error messages for functions that now take a Blob
argument.
Solution: Adjust the error messages. (Dominique Pelle, closes vim/vim#3846)
0d17f0d1c0
This commit is contained in:
@@ -739,7 +739,7 @@ describe('lua stdlib', function()
|
||||
eq({NIL, NIL}, exec_lua([[return vim.fn.Nilly()]]))
|
||||
|
||||
-- error handling
|
||||
eq({false, 'Vim:E714: List required'}, exec_lua([[return {pcall(vim.fn.add, "aa", "bb")}]]))
|
||||
eq({false, 'Vim:E897: List or Blob required'}, exec_lua([[return {pcall(vim.fn.add, "aa", "bb")}]]))
|
||||
end)
|
||||
|
||||
it('vim.fn should error when calling API function', function()
|
||||
|
Reference in New Issue
Block a user