diff options
author | Ernie Rael <errael@raelity.com> | 2023-12-21 17:18:54 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-12-21 17:18:54 +0100 |
commit | e75fde6b043371a188660c3423e48b1b7fd7e14b (patch) | |
tree | 39a7e955cf230c56215182d1cc59c355b61c3d4f /src/vim9type.c | |
parent | 18ab6c3392ef83abf078042e233d085fe80b6c06 (diff) |
patch 9.0.2184: Vim9: inconsistent :type/:class messagesv9.0.2184
Problem: Vim9: inconsistent :type/:class messages
Solution: Update the Messages (Ernie Rael)
closes: #13706
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/vim9type.c')
-rw-r--r-- | src/vim9type.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vim9type.c b/src/vim9type.c index 423043a84a..0d004c8c6d 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -1871,7 +1871,10 @@ check_typval_is_value(typval_T *tv) return OK; if (tv->v_type == VAR_CLASS) { - semsg(_(e_using_class_as_value_str), tv->vval.v_class->class_name); + if (tv->vval.v_class != NULL) + semsg(_(e_using_class_as_value_str), tv->vval.v_class->class_name); + else + emsg(e_using_class_as_var_val); return FAIL; } else if (tv->v_type == VAR_TYPEALIAS) |