diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-28 14:31:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-28 14:31:16 +0100 |
commit | 6cf7e3b026727818cd137e2b317b1f6d7c072703 (patch) | |
tree | ecbbec3ad64293e7d5ad642c826d1e673e69ab0f /src/vim9compile.c | |
parent | b4bcea474d9006e4db1fa5d6828773e739af14bb (diff) | |
download | vim-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.c | 4 |
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; } } |