diff src/vim9cmds.c @ 26857:2aeea8611342 v8.2.3957

patch 8.2.3957: error messages are spread out Commit: https://github.com/vim/vim/commit/1a9922243a90f213894d5c58cd063465eea3350f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 31 17:25:48 2021 +0000 patch 8.2.3957: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Fri, 31 Dec 2021 18:30:03 +0100
parents fc859aea8cec
children bce848ec8b1b
line wrap: on
line diff
--- 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;
     }