patch 8.2.3200: Vim9: hard to guess where a type error is given
Problem: Vim9: hard to guess where a type error is given.
Solution: Add the function name where possible. (closes #8608)
diff --git a/src/dict.c b/src/dict.c
index 8bcf28c..080c345 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -1073,7 +1073,7 @@
* Otherwise duplicate keys are ignored ("action" is "keep").
*/
void
-dict_extend(dict_T *d1, dict_T *d2, char_u *action)
+dict_extend(dict_T *d1, dict_T *d2, char_u *action, char *func_name)
{
dictitem_T *di1;
hashitem_T *hi2;
@@ -1106,8 +1106,8 @@
}
if (type != NULL
- && check_typval_arg_type(type, &HI2DI(hi2)->di_tv, 0)
- == FAIL)
+ && check_typval_arg_type(type, &HI2DI(hi2)->di_tv,
+ func_name, 0) == FAIL)
break;
if (di1 == NULL)