From 436b5adc9770a2568209dd5ab1f98bd1afc91898 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 31 Dec 2021 22:49:24 +0000 Subject: patch 8.2.3961: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h. --- src/cmdexpand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmdexpand.c') diff --git a/src/cmdexpand.c b/src/cmdexpand.c index 73c5a91664..9468beba75 100644 --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -2903,7 +2903,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv) pat = tv_get_string(&argvars[0]); if (argvars[1].v_type != VAR_STRING) { - semsg(_(e_invarg2), "type must be a string"); + semsg(_(e_invalid_argument_str), "type must be a string"); return; } type = tv_get_string(&argvars[1]); @@ -2933,7 +2933,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv) xpc.xp_context = cmdcomplete_str_to_type(type); if (xpc.xp_context == EXPAND_NOTHING) { - semsg(_(e_invarg2), type); + semsg(_(e_invalid_argument_str), type); return; } -- cgit v1.2.3