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/vim9cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vim9cmds.c') diff --git a/src/vim9cmds.c b/src/vim9cmds.c index d3411540f..eb28a7922 100644 --- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -1520,11 +1520,11 @@ compile_endtry(char_u *arg, cctx_T *cctx) if (scope == NULL) emsg(_(e_no_endtry)); else if (scope->se_type == WHILE_SCOPE) - emsg(_(e_endwhile)); + emsg(_(e_missing_endwhile)); else if (scope->se_type == FOR_SCOPE) - emsg(_(e_endfor)); + emsg(_(e_missing_endfor)); else - emsg(_(e_endif)); + emsg(_(e_missing_endif)); return NULL; } -- cgit v1.2.1