forked from aniani/vim
patch 9.0.0359: error message for wrong argument type is not specific
Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
This commit is contained in:
committed by
Bram Moolenaar
parent
119167265e
commit
8deb2b30c7
@@ -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];
|
||||
|
Reference in New Issue
Block a user