From 1a9922243a90f213894d5c58cd063465eea3350f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 31 Dec 2021 17:25:48 +0000 Subject: patch 8.2.3957: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h. --- src/ex_eval.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ex_eval.c') diff --git a/src/ex_eval.c b/src/ex_eval.c index b3c38a1ea..337f1ed14 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -1413,7 +1413,7 @@ ex_endwhile(exarg_T *eap) if (!(fl & (CSF_WHILE | CSF_FOR))) { if (!(fl & CSF_TRY)) - eap->errmsg = _(e_endif); + eap->errmsg = _(e_missing_endif); else if (fl & CSF_FINALLY) eap->errmsg = _(e_endtry); // Try to find the matching ":while" and report what's missing. @@ -2484,10 +2484,10 @@ cleanup_conditionals( get_end_emsg(cstack_T *cstack) { if (cstack->cs_flags[cstack->cs_idx] & CSF_WHILE) - return _(e_endwhile); + return _(e_missing_endwhile); if (cstack->cs_flags[cstack->cs_idx] & CSF_FOR) - return _(e_endfor); - return _(e_endif); + return _(e_missing_endfor); + return _(e_missing_endif); } -- cgit v1.2.1