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/errors.h | |
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/errors.h')
-rw-r--r-- | src/errors.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index 00894ef21c..f2624dfc1d 100644 --- a/src/errors.h +++ b/src/errors.h @@ -10,6 +10,44 @@ * Definition of error messages, sorted on error number. */ +EXTERN char e_backslash_should_be_followed_by[] + INIT(= N_("E10: \\ should be followed by /, ? or &")); +#ifdef FEAT_CMDWIN +EXTERN char e_invalid_in_cmdline_window[] + INIT(= N_("E11: Invalid in command-line window; <CR> executes, CTRL-C quits")); +#endif +EXTERN char e_command_not_allowed_from_vimrc_in_current_dir_or_tag_search[] + INIT(= N_("E12: Command not allowed from exrc/vimrc in current dir or tag search")); +EXTERN char e_file_exists[] + INIT(= N_("E13: File exists (add ! to override)")); +#ifdef FEAT_EVAL +EXTERN char e_invalid_expression_str[] + INIT(= N_("E15: Invalid expression: \"%s\"")); +#endif +EXTERN char e_invalid_range[] + INIT(= N_("E16: Invalid range")); +#if defined(UNIX) || defined(FEAT_SYN_HL) || defined(FEAT_SPELL) +EXTERN char e_src_is_directory[] + INIT(= N_("E17: \"%s\" is a directory")); +#endif +#ifdef FEAT_EVAL +EXTERN char e_unexpected_characters_in_let[] + INIT(= N_("E18: Unexpected characters in :let")); +EXTERN char e_unexpected_characters_in_assignment[] + INIT(= N_("E18: Unexpected characters in assignment")); +#endif +EXTERN char e_mark_has_invalid_line_number[] + INIT(= N_("E19: Mark has invalid line number")); +EXTERN char e_mark_not_set[] + INIT(= N_("E20: Mark not set")); +EXTERN char e_cannot_make_changes_modifiable_is_off[] + INIT(= N_("E21: Cannot make changes, 'modifiable' is off")); +EXTERN char e_scripts_nested_too_deep[] + INIT(= N_("E22: Scripts nested too deep")); +EXTERN char e_no_alternate_file[] + INIT(= N_("E23: No alternate file")); +EXTERN char e_no_such_abbreviation[] + INIT(= N_("E24: No such abbreviation")); #ifdef FEAT_EVAL EXTERN char e_undefined_variable_str[] INIT(= N_("E121: Undefined variable: %s")); |