diff src/list.c @ 26887:612339679616 v8.2.3972

patch 8.2.3972: error messages are spread out Commit: https://github.com/vim/vim/commit/3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 16:21:00 2022 +0000 patch 8.2.3972: error messages are spread out Problem: Error messages are spread out. Solution: Move the last errors from globals.h to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 17:30:02 +0100
parents 06a137af96f8
children 4e77f9961650
line wrap: on
line diff
--- a/src/list.c
+++ b/src/list.c
@@ -992,7 +992,7 @@ flatten_common(typval_T *argvars, typval
 
     if (argvars[0].v_type != VAR_LIST)
     {
-	semsg(_(e_listarg), "flatten()");
+	semsg(_(e_argument_of_str_must_be_list), "flatten()");
 	return;
     }
 
@@ -2202,7 +2202,7 @@ do_sort_uniq(typval_T *argvars, typval_T
 
     if (argvars[0].v_type != VAR_LIST)
     {
-	semsg(_(e_listarg), sort ? "sort()" : "uniq()");
+	semsg(_(e_argument_of_str_must_be_list), sort ? "sort()" : "uniq()");
 	return;
     }