diff options
author | Ernie Rael <errael@raelity.com> | 2023-10-06 19:55:52 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-06 19:55:52 +0200 |
commit | e6c9aa5e6a88d539a412a9b5526f41ea101aa185 (patch) | |
tree | 2ba9d1d12205cbe879b917b1e78b3df7bc43f4f9 /src/vim9compile.c | |
parent | 85f4521808dd9a587c00f9a2927e84217721cfca (diff) |
patch 9.0.1999: Vim9: some error messages can be improvedv9.0.1999
Problem: Vim9: some error messages can be improved
Solution: Mention the defining class for variable access error message
closes: #13272
Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Co-authored-by: Ernie Rael <errael@raelity.com>
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index 136bea49d3..828fe02e81 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1616,7 +1616,7 @@ lhs_class_member_modifiable(lhs_T *lhs, char_u *var_start, cctx_T *cctx) char *msg = (m->ocm_access == VIM_ACCESS_PRIVATE) ? e_cannot_access_private_variable_str : e_variable_is_not_writable_str; - semsg(_(msg), m->ocm_name, cl->class_name); + emsg_var_cl_define(msg, m->ocm_name, 0, cl); return FALSE; } |