summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-28 14:31:16 +0100
committerBram Moolenaar <Bram@vim.org>2020-10-28 14:31:16 +0100
commit6cf7e3b026727818cd137e2b317b1f6d7c072703 (patch)
treeecbbec3ad64293e7d5ad642c826d1e673e69ab0f /src/vim9compile.c
parentb4bcea474d9006e4db1fa5d6828773e739af14bb (diff)
downloadvim-git-6cf7e3b026727818cd137e2b317b1f6d7c072703.tar.gz
patch 8.2.1915: Vim9: error for wrong number of arguments is not usefulv8.2.1915
Problem: Vim9: error for wrong number of arguments is not useful. Solution: Mention whatever we have for the name. (closes #7208)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 60b55d560..225d5d50e 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1687,12 +1687,12 @@ generate_PCALL(
if (argcount < type->tt_min_argcount - varargs)
{
- semsg(_(e_toofewarg), "[reference]");
+ semsg(_(e_toofewarg), name);
return FAIL;
}
if (!varargs && argcount > type->tt_argcount)
{
- semsg(_(e_toomanyarg), "[reference]");
+ semsg(_(e_toomanyarg), name);
return FAIL;
}
}