Mercurial > vim
comparison src/dict.c @ 26883:7f150a4936f2 v8.2.3970
patch 8.2.3970: error messages are spread out
Commit: https://github.com/vim/vim/commit/74409f62790a93daf0965c71da01ff76aa0fa5a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 15:58:22 2022 +0000
patch 8.2.3970: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 17:00:04 +0100 |
parents | 06a137af96f8 |
children | ccb9be1cdd71 |
comparison
equal
deleted
inserted
replaced
26882:196f4d7e2a38 | 26883:7f150a4936f2 |
---|---|
960 if (**arg != ':') | 960 if (**arg != ':') |
961 { | 961 { |
962 if (*skipwhite(*arg) == ':') | 962 if (*skipwhite(*arg) == ':') |
963 semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg); | 963 semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg); |
964 else | 964 else |
965 semsg(_(e_missing_dict_colon), *arg); | 965 semsg(_(e_missing_colon_in_dictionary), *arg); |
966 clear_tv(&tvkey); | 966 clear_tv(&tvkey); |
967 goto failret; | 967 goto failret; |
968 } | 968 } |
969 if (evaluate) | 969 if (evaluate) |
970 { | 970 { |
1000 if (evaluate) | 1000 if (evaluate) |
1001 { | 1001 { |
1002 item = dict_find(d, key, -1); | 1002 item = dict_find(d, key, -1); |
1003 if (item != NULL) | 1003 if (item != NULL) |
1004 { | 1004 { |
1005 semsg(_(e_duplicate_key), key); | 1005 semsg(_(e_duplicate_key_in_dicitonary), key); |
1006 clear_tv(&tvkey); | 1006 clear_tv(&tvkey); |
1007 clear_tv(&tv); | 1007 clear_tv(&tv); |
1008 goto failret; | 1008 goto failret; |
1009 } | 1009 } |
1010 item = dictitem_alloc(key); | 1010 item = dictitem_alloc(key); |
1040 if (!had_comma) | 1040 if (!had_comma) |
1041 { | 1041 { |
1042 if (**arg == ',') | 1042 if (**arg == ',') |
1043 semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg); | 1043 semsg(_(e_no_white_space_allowed_before_str_str), ",", *arg); |
1044 else | 1044 else |
1045 semsg(_(e_missing_dict_comma), *arg); | 1045 semsg(_(e_missing_comma_in_dictionary), *arg); |
1046 goto failret; | 1046 goto failret; |
1047 } | 1047 } |
1048 } | 1048 } |
1049 | 1049 |
1050 if (**arg != '}') | 1050 if (**arg != '}') |