comparison src/errors.h @ 22165:c512e6f57ff2 v8.2.1632

patch 8.2.1632: not checking the context of test_fails() Commit: https://github.com/vim/vim/commit/44d6652d561d628d12e3ff7f6636ea7d1f805ced Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 6 22:26:57 2020 +0200 patch 8.2.1632: not checking the context of test_fails() Problem: Not checking the context of test_fails(). Solution: Add the line number and context arguments. Give error if assert_fails() argument types are wrong.
author Bram Moolenaar <Bram@vim.org>
date Sun, 06 Sep 2020 22:30:03 +0200
parents 2030f8267db9
children f9b4576a618b
comparison
equal deleted inserted replaced
22164:7b7500b8b68e 22165:c512e6f57ff2
21 #ifdef FEAT_EVAL 21 #ifdef FEAT_EVAL
22 EXTERN char e_invalid_command_str[] 22 EXTERN char e_invalid_command_str[]
23 INIT(= N_("E476: Invalid command: %s")); 23 INIT(= N_("E476: Invalid command: %s"));
24 EXTERN char e_cannot_slice_dictionary[] 24 EXTERN char e_cannot_slice_dictionary[]
25 INIT(= N_("E719: cannot slice a Dictionary")); 25 INIT(= N_("E719: cannot slice a Dictionary"));
26 EXTERN char e_assert_fails_second_arg[]
27 INIT(= N_("E856: assert_fails() second argument must be a string or a list with one or two strings"));
26 EXTERN char e_cannot_index_special_variable[] 28 EXTERN char e_cannot_index_special_variable[]
27 INIT(= N_("E909: Cannot index a special variable")); 29 INIT(= N_("E909: Cannot index a special variable"));
28 EXTERN char e_missing_let_str[] 30 EXTERN char e_missing_let_str[]
29 INIT(= N_("E1100: Missing :let: %s")); 31 INIT(= N_("E1100: Missing :let: %s"));
30 EXTERN char e_variable_not_found_str[] 32 EXTERN char e_variable_not_found_str[]
248 INIT(= N_("E1112: List item %d cell width invalid")); 250 INIT(= N_("E1112: List item %d cell width invalid"));
249 EXTERN char e_overlapping_ranges_for_nr[] 251 EXTERN char e_overlapping_ranges_for_nr[]
250 INIT(= N_("E1113: Overlapping ranges for 0x%lx")); 252 INIT(= N_("E1113: Overlapping ranges for 0x%lx"));
251 EXTERN char e_only_values_of_0x100_and_higher_supported[] 253 EXTERN char e_only_values_of_0x100_and_higher_supported[]
252 INIT(= N_("E1114: Only values of 0x100 and higher supported")); 254 INIT(= N_("E1114: Only values of 0x100 and higher supported"));
255 EXTERN char e_assert_fails_fourth_argument[]
256 INIT(= N_("E1115: assert_fails() fourth argument must be a number"));
257 EXTERN char e_assert_fails_fifth_argument[]
258 INIT(= N_("E1116: assert_fails() fifth argument must be a string"));
253 #endif 259 #endif