summaryrefslogtreecommitdiffstats
path: root/src/dict.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-22 14:58:47 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-22 14:58:47 +0200
commit7a3fe3e180bdbce8f193abdf399559c5154bdaae (patch)
tree842eac4734c81db7a49ddaaf20b4fea732bb8162 /src/dict.c
parenta74901929e999a0052c1ce388ab09359c10cbb0d (diff)
patch 8.2.3200: Vim9: hard to guess where a type error is givenv8.2.3200
Problem: Vim9: hard to guess where a type error is given. Solution: Add the function name where possible. (closes #8608)
Diffstat (limited to 'src/dict.c')
-rw-r--r--src/dict.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dict.c b/src/dict.c
index 8bcf28c72f..080c345bfa 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -1073,7 +1073,7 @@ failret:
* 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 @@ dict_extend(dict_T *d1, dict_T *d2, char_u *action)
}
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)