patch 8.2.4008: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index aa752d1..e90f98d 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -2019,7 +2019,7 @@
startc = oldstartc;
if (startc > endc)
- EMSG_RET_FAIL(_(e_reverse_range));
+ EMSG_RET_FAIL(_(e_reverse_range_in_character_class));
if (endc > startc + 2)
{
@@ -2128,7 +2128,7 @@
} // if exists closing ]
if (reg_strict)
- EMSG_RET_FAIL(_(e_missingbracket));
+ EMSG_RET_FAIL(_(e_missing_rsb_after_str_lsb));
// FALLTHROUGH
default: