patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/match.c b/src/match.c
index 6bd2b8f..491f8c0 100644
--- a/src/match.c
+++ b/src/match.c
@@ -55,7 +55,7 @@
{
if (cur->id == id)
{
- semsg(_("E801: ID already taken: %d"), id);
+ semsg(_(e_id_already_taken_nr), id);
return -1;
}
cur = cur->next;
@@ -233,8 +233,7 @@
if (id < 1)
{
if (perr == TRUE)
- semsg(_("E802: Invalid ID: %d (must be greater than or equal to 1)"),
- id);
+ semsg(_(e_invalid_id_nr_must_be_greater_than_or_equal_to_one), id);
return -1;
}
while (cur != NULL && cur->id != id)
@@ -245,7 +244,7 @@
if (cur == NULL)
{
if (perr == TRUE)
- semsg(_("E803: ID not found: %d"), id);
+ semsg(_(e_id_not_found_nr), id);
return -1;
}
if (cur == prev)