mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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
@@ -3679,11 +3679,8 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
|
||||
return;
|
||||
|
||||
pat = tv_get_string(&argvars[0]);
|
||||
if (argvars[1].v_type != VAR_STRING)
|
||||
{
|
||||
semsg(_(e_invalid_argument_str), "type must be a string");
|
||||
if (check_for_string_arg(argvars, 1) == FAIL)
|
||||
return;
|
||||
}
|
||||
type = tv_get_string(&argvars[1]);
|
||||
|
||||
if (argvars[2].v_type != VAR_UNKNOWN)
|
||||
|
Reference in New Issue
Block a user