patch 8.2.4657: errors for functions are sometimes hard to read
Problem: Errors for functions are sometimes hard to read.
Solution: Use printable_func_name() in more places.
diff --git a/src/vim9instr.c b/src/vim9instr.c
index ab52d4c..c89f527 100644
--- a/src/vim9instr.c
+++ b/src/vim9instr.c
@@ -1517,7 +1517,7 @@
}
if (ufunc->uf_def_status == UF_COMPILE_ERROR)
{
- emsg_funcname(_(e_call_to_function_that_failed_to_compile_str),
+ emsg_funcname(e_call_to_function_that_failed_to_compile_str,
ufunc->uf_name);
return FAIL;
}
@@ -1594,12 +1594,12 @@
if (argcount < type->tt_min_argcount - varargs)
{
- semsg(_(e_not_enough_arguments_for_function_str), name);
+ emsg_funcname(e_not_enough_arguments_for_function_str, name);
return FAIL;
}
if (!varargs && argcount > type->tt_argcount)
{
- semsg(_(e_too_many_arguments_for_function_str), name);
+ emsg_funcname(e_too_many_arguments_for_function_str, name);
return FAIL;
}
if (type->tt_args != NULL)