summaryrefslogtreecommitdiffstats
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 17:25:48 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 17:25:48 +0000
commit1a9922243a90f213894d5c58cd063465eea3350f (patch)
treeb9fb1efe82d000b215d8b99750372e4f2ec7ba92 /src/ex_eval.c
parent4b1478093eb8b8bebc94b1f596e0afc25db4d189 (diff)
patch 8.2.3957: error messages are spread outv8.2.3957
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index b3c38a1ea5..337f1ed147 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);
}