Mercurial > vim
diff src/vim9compile.c @ 33322:9062315f9de1 v9.0.1926
patch 9.0.1926: Vim9: not enough info in error message
Commit: https://github.com/vim/vim/commit/696270bcae0c14029030f14a3f3ca2763a2b39de
Author: Ernie Rael <errael@raelity.com>
Date: Thu Sep 21 16:42:28 2023 +0200
patch 9.0.1926: Vim9: not enough info in error message
Problem: Vim9: not enough info in error message
Solution: Add class name, change member to variable, quote names
closes: #13136
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Sep 2023 16:45:09 +0200 |
parents | 6340c608ca54 |
children | 4e531adb3fac |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -1611,8 +1611,8 @@ lhs_class_member_modifiable(lhs_T *lhs, { char *msg = (m->ocm_access == VIM_ACCESS_PRIVATE) ? e_cannot_access_private_member_str - : e_cannot_change_readonly_variable_str; - semsg(_(msg), m->ocm_name); + : e_member_is_not_writable_str; + semsg(_(msg), m->ocm_name, cl->class_name); return FALSE; }