patch 8.2.4005: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/list.c b/src/list.c
index aadc723..226d25d 100644
--- a/src/list.c
+++ b/src/list.c
@@ -1542,7 +1542,7 @@
semsg(_(e_no_white_space_allowed_before_str_str),
",", *arg);
else
- semsg(_("E696: Missing comma in List: %s"), *arg);
+ semsg(_(e_missing_comma_in_list_str), *arg);
}
goto failret;
}
@@ -2002,7 +2002,7 @@
|| info->item_compare_partial != NULL)
&& item_compare2((void *)&ptrs[0], (void *)&ptrs[1])
== ITEM_COMPARE_FAIL)
- emsg(_("E702: Sort compare function failed"));
+ emsg(_(e_sort_compare_function_failed));
else
{
// Sort the array with item pointers.