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.
diff --git a/src/list.c b/src/list.c
index fe8c082..743ccf5 100644
--- a/src/list.c
+++ b/src/list.c
@@ -992,7 +992,7 @@
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 @@
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;
}