summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-09-02 15:15:27 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-02 15:15:27 +0100
commit8deb2b30c77035bb682ccf80b781455ac1d6038b (patch)
tree66a1d18ad9971c123f42bd7879c56706e19be73b /src/blob.c
parent119167265ebc7eced210a7f8ed2f4b90378f98f1 (diff)
downloadvim-git-8deb2b30c77035bb682ccf80b781455ac1d6038b.tar.gz
patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359
Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/blob.c b/src/blob.c
index 0d88c757a..cfc3d372d 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -667,11 +667,8 @@ blob_reduce(
initial.vval.v_number = blob_get(b, 0);
i = 1;
}
- else if (argvars[2].v_type != VAR_NUMBER)
- {
- emsg(_(e_number_expected));
+ else if (check_for_number_arg(argvars, 2) == FAIL)
return;
- }
else
{
initial = argvars[2];