mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
Add some tests and cleanup.
This commit is contained in:

committed by
James McCoy

parent
0f681c80e1
commit
5e4eb18eb0
@@ -9664,7 +9664,7 @@ static void f_function(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
}
|
||||
if (arg_idx > 0) {
|
||||
if (argvars[arg_idx].v_type != VAR_LIST) {
|
||||
EMSG(_("E923: Second argument of function() must be"
|
||||
EMSG(_("E923: Second argument of function() must be "
|
||||
"a list or a dict"));
|
||||
xfree(name);
|
||||
return;
|
||||
|
@@ -908,7 +908,7 @@ char *encode_tv2json(typval_T *tv, size_t *len)
|
||||
mpstack, objname)
|
||||
|
||||
#define TYPVAL_ENCODE_CONV_PARTIAL(partial) \
|
||||
return conv_error(_("E951: Error while dumping %s, %s: " \
|
||||
return conv_error(_("E5004: Error while dumping %s, %s: " \
|
||||
"attempt to dump partial"), \
|
||||
mpstack, objname)
|
||||
|
||||
|
Reference in New Issue
Block a user