diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-22 14:58:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-22 14:58:47 +0200 |
commit | 7a3fe3e180bdbce8f193abdf399559c5154bdaae (patch) | |
tree | 842eac4734c81db7a49ddaaf20b4fea732bb8162 /src/errors.h | |
parent | a74901929e999a0052c1ce388ab09359c10cbb0d (diff) |
patch 8.2.3200: Vim9: hard to guess where a type error is givenv8.2.3200
Problem: Vim9: hard to guess where a type error is given.
Solution: Add the function name where possible. (closes #8608)
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index 8655d3f455..281bda66bf 100644 --- a/src/errors.h +++ b/src/errors.h @@ -192,8 +192,12 @@ EXTERN char e_name_too_long_str[] INIT(= N_("E1011: Name too long: %s")); EXTERN char e_type_mismatch_expected_str_but_got_str[] INIT(= N_("E1012: Type mismatch; expected %s but got %s")); +EXTERN char e_type_mismatch_expected_str_but_got_str_in_str[] + INIT(= N_("E1012: Type mismatch; expected %s but got %s in %s")); EXTERN char e_argument_nr_type_mismatch_expected_str_but_got_str[] INIT(= N_("E1013: Argument %d: type mismatch, expected %s but got %s")); +EXTERN char e_argument_nr_type_mismatch_expected_str_but_got_str_in_str[] + INIT(= N_("E1013: Argument %d: type mismatch, expected %s but got %s in %s")); EXTERN char e_invalid_key_str[] INIT(= N_("E1014: Invalid key: %s")); EXTERN char e_name_expected_str[] @@ -494,6 +498,8 @@ EXTERN char e_register_name_must_be_one_char_str[] INIT(= N_("E1162: Register name must be one character: %s")); EXTERN char e_variable_nr_type_mismatch_expected_str_but_got_str[] INIT(= N_("E1163: Variable %d: type mismatch, expected %s but got %s")); +EXTERN char e_variable_nr_type_mismatch_expected_str_but_got_str_in_str[] + INIT(= N_("E1163: Variable %d: type mismatch, expected %s but got %s in %s")); EXTERN char e_vim9cmd_must_be_followed_by_command[] INIT(= N_("E1164: vim9cmd must be followed by a command")); EXTERN char e_cannot_use_range_with_assignment_str[] |