diff options
author | Ernie Rael <errael@raelity.com> | 2023-10-11 21:22:12 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-11 21:22:12 +0200 |
commit | f8da32461969a657ce9f132f35ddbec4068d3296 (patch) | |
tree | 1da1669c0c5659aa4358c6b77d385e582ae9b3ba /src/eval.c | |
parent | 4a82bdfaa8022402b1ca0f0000c94c47a13f1014 (diff) |
patch 9.0.2012: Vim9: error message can be more accuratev9.0.2012
Problem: Vim9: error message can be more accurate
Solution: Fix the error messages
Fix message for some single use error messages.
closes: #13312
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eval.c b/src/eval.c index 93109effb9..8b26eb189f 100644 --- a/src/eval.c +++ b/src/eval.c @@ -1375,9 +1375,9 @@ get_lval( && v_type != VAR_OBJECT && v_type != VAR_CLASS) { - // TODO: have a message with obj/class, not just dict, if (!quiet) - semsg(_(e_dot_can_only_be_used_on_dictionary_str), name); + semsg(_(e_dot_not_allowed_after_str_str), + vartype_name(v_type), name); return NULL; } if (v_type != VAR_LIST @@ -1386,9 +1386,9 @@ get_lval( && v_type != VAR_OBJECT && v_type != VAR_CLASS) { - // TODO: have a message with obj/class, not just dict/list/blob, if (!quiet) - emsg(_(e_can_only_index_list_dictionary_or_blob)); + semsg(_(e_index_not_allowed_after_str_str), + vartype_name(v_type), name); return NULL; } |