Mercurial > vim
comparison src/dict.c @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: 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 15:30:05 +0100 |
parents | bce848ec8b1b |
children | 7f150a4936f2 |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
1412 return; | 1412 return; |
1413 | 1413 |
1414 di = dict_find(d, key, -1); | 1414 di = dict_find(d, key, -1); |
1415 if (di == NULL) | 1415 if (di == NULL) |
1416 { | 1416 { |
1417 semsg(_(e_dictkey), key); | 1417 semsg(_(e_key_not_present_in_dictionary), key); |
1418 return; | 1418 return; |
1419 } | 1419 } |
1420 | 1420 |
1421 if (var_check_fixed(di->di_flags, arg_errmsg, TRUE) | 1421 if (var_check_fixed(di->di_flags, arg_errmsg, TRUE) |
1422 || var_check_ro(di->di_flags, arg_errmsg, TRUE)) | 1422 || var_check_ro(di->di_flags, arg_errmsg, TRUE)) |
1447 if (in_vim9script() && check_for_dict_arg(argvars, 0) == FAIL) | 1447 if (in_vim9script() && check_for_dict_arg(argvars, 0) == FAIL) |
1448 return; | 1448 return; |
1449 | 1449 |
1450 if (argvars[0].v_type != VAR_DICT) | 1450 if (argvars[0].v_type != VAR_DICT) |
1451 { | 1451 { |
1452 emsg(_(e_dictreq)); | 1452 emsg(_(e_dictionary_required)); |
1453 return; | 1453 return; |
1454 } | 1454 } |
1455 | 1455 |
1456 if (rettv_list_alloc(rettv) == FAIL) | 1456 if (rettv_list_alloc(rettv) == FAIL) |
1457 return; | 1457 return; |
1570 || check_for_string_or_number_arg(argvars, 1) == FAIL)) | 1570 || check_for_string_or_number_arg(argvars, 1) == FAIL)) |
1571 return; | 1571 return; |
1572 | 1572 |
1573 if (argvars[0].v_type != VAR_DICT) | 1573 if (argvars[0].v_type != VAR_DICT) |
1574 { | 1574 { |
1575 emsg(_(e_dictreq)); | 1575 emsg(_(e_dictionary_required)); |
1576 return; | 1576 return; |
1577 } | 1577 } |
1578 if (argvars[0].vval.v_dict == NULL) | 1578 if (argvars[0].vval.v_dict == NULL) |
1579 return; | 1579 return; |
1580 | 1580 |