summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-07-18 14:43:43 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-18 14:43:43 +0200
commit0c35752d04f70408a3c560d5b3edbafcaddff302 (patch)
treef4db397f3be18ba9dc6082b73ed24e98affb15da /src/errors.h
parentc6ba2f9dde6d01c8ab356c239c2259f7d83652a4 (diff)
patch 8.2.3176: Vim9: no type error for comparing number with stringv8.2.3176
Problem: Vim9: no type error for comparing number with string. Solution: Add a runtime type check. (closes #8571)
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.h b/src/errors.h
index 46de733bc6..35d1487338 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -381,8 +381,8 @@ EXTERN char e_mismatched_endfunction[]
INIT(= N_("E1151: Mismatched endfunction"));
EXTERN char e_mismatched_enddef[]
INIT(= N_("E1152: Mismatched enddef"));
-EXTERN char e_invalid_operation_for_bool[]
- INIT(= N_("E1153: Invalid operation for bool"));
+EXTERN char e_invalid_operation_for_str[]
+ INIT(= N_("E1153: Invalid operation for %s"));
EXTERN char e_divide_by_zero[]
INIT(= N_("E1154: Divide by zero"));
EXTERN char e_cannot_define_autocommands_for_all_events[]