summaryrefslogtreecommitdiff
path: root/src/vim9cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-01 16:21:00 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-01 16:21:00 +0000
commit3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5 (patch)
treee345b4f42d545e735e2df2292589211ba52ff678 /src/vim9cmds.c
parent0699b040e6794d27ffdca241a4358d7c31876385 (diff)
downloadvim-git-3a846e6bca25bd3d0addcd9ed3bdd9a6774adbe5.tar.gz
patch 8.2.3972: error messages are spread outv8.2.3972
Problem: Error messages are spread out. Solution: Move the last errors from globals.h to errors.h.
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r--src/vim9cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index 250c265ff..5a86a940c 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -796,7 +796,7 @@ compile_for(char_u *arg_start, cctx_T *cctx)
if (*p == ':' && wp != p)
semsg(_(e_no_white_space_allowed_before_colon_str), p);
else
- emsg(_(e_missing_in));
+ emsg(_(e_missing_in_after_for));
return NULL;
}
wp = p + 2;
@@ -1150,7 +1150,7 @@ compile_continue(char_u *arg, cctx_T *cctx)
{
if (scope == NULL)
{
- emsg(_(e_continue));
+ emsg(_(e_continue_without_while_or_for));
return NULL;
}
if (scope->se_type == FOR_SCOPE)
@@ -1192,7 +1192,7 @@ compile_break(char_u *arg, cctx_T *cctx)
{
if (scope == NULL)
{
- emsg(_(e_break));
+ emsg(_(e_break_without_while_or_for));
return NULL;
}
if (scope->se_type == FOR_SCOPE || scope->se_type == WHILE_SCOPE)