diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-06-27 22:03:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-27 22:03:33 +0200 |
commit | 108010aa4720ef023a8ac59004fc0f2bc11125af (patch) | |
tree | 831741a42644a86ee0d74679361f74cc27861eaa /src/ex_cmds.c | |
parent | d887297ad0164516dd52cdab0308c3626337d124 (diff) |
patch 8.2.3069: error messages are spread outv8.2.3069
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index d8c5a12c72..7e0bd64ab7 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2120,7 +2120,7 @@ check_overwrite( // with UNIX it is possible to open a directory if (mch_isdir(ffname)) { - semsg(_(e_isadir2), ffname); + semsg(_(e_src_is_directory), ffname); return FAIL; } #endif @@ -2137,7 +2137,7 @@ check_overwrite( else #endif { - emsg(_(e_exists)); + emsg(_(e_file_exists)); return FAIL; } } @@ -3586,7 +3586,7 @@ check_secure(void) if (secure) { secure = 2; - emsg(_(e_curdir)); + emsg(_(e_command_not_allowed_from_vimrc_in_current_dir_or_tag_search)); return TRUE; } #ifdef HAVE_SANDBOX @@ -3729,7 +3729,7 @@ ex_substitute(exarg_T *eap) ++cmd; if (vim_strchr((char_u *)"/?&", *cmd) == NULL) { - emsg(_(e_backslash)); + emsg(_(e_backslash_should_be_followed_by)); return; } if (*cmd != '&') @@ -3944,7 +3944,7 @@ ex_substitute(exarg_T *eap) if (!subflags.do_count && !curbuf->b_p_ma) { // Substitution is not allowed in non-'modifiable' buffer - emsg(_(e_modifiable)); + emsg(_(e_cannot_make_changes_modifiable_is_off)); return; } @@ -4903,7 +4903,7 @@ ex_global(exarg_T *eap) ++cmd; if (vim_strchr((char_u *)"/?&", *cmd) == NULL) { - emsg(_(e_backslash)); + emsg(_(e_backslash_should_be_followed_by)); return; } if (*cmd == '&') |