comparison src/mbyte.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 d91aea2a612c
comparison
equal deleted inserted replaced
26876:601a973ac16c 26877:06a137af96f8
4905 // Only give the message when 'verbose' is set, otherwise it might be 4905 // Only give the message when 'verbose' is set, otherwise it might be
4906 // done whenever a conversion is attempted. 4906 // done whenever a conversion is attempted.
4907 if (verbose && p_verbose > 0) 4907 if (verbose && p_verbose > 0)
4908 { 4908 {
4909 verbose_enter(); 4909 verbose_enter();
4910 semsg(_(e_loadlib), 4910 semsg(_(e_could_not_load_library_str_str),
4911 hIconvDLL == 0 ? DYNAMIC_ICONV_DLL : DYNAMIC_MSVCRT_DLL, 4911 hIconvDLL == 0 ? DYNAMIC_ICONV_DLL : DYNAMIC_MSVCRT_DLL,
4912 GetWin32Error()); 4912 GetWin32Error());
4913 verbose_leave(); 4913 verbose_leave();
4914 } 4914 }
4915 iconv_end(); 4915 iconv_end();
4928 { 4928 {
4929 iconv_end(); 4929 iconv_end();
4930 if (verbose && p_verbose > 0) 4930 if (verbose && p_verbose > 0)
4931 { 4931 {
4932 verbose_enter(); 4932 verbose_enter();
4933 semsg(_(e_loadfunc), "for libiconv"); 4933 semsg(_(e_could_not_load_library_function_str), "for libiconv");
4934 verbose_leave(); 4934 verbose_leave();
4935 } 4935 }
4936 return FALSE; 4936 return FALSE;
4937 } 4937 }
4938 return TRUE; 4938 return TRUE;
5522 if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL) 5522 if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL)
5523 return; 5523 return;
5524 5524
5525 if (argvars[0].v_type != VAR_LIST || argvars[0].vval.v_list == NULL) 5525 if (argvars[0].v_type != VAR_LIST || argvars[0].vval.v_list == NULL)
5526 { 5526 {
5527 emsg(_(e_listreq)); 5527 emsg(_(e_list_required));
5528 return; 5528 return;
5529 } 5529 }
5530 l = argvars[0].vval.v_list; 5530 l = argvars[0].vval.v_list;
5531 if (l->lv_len == 0) 5531 if (l->lv_len == 0)
5532 { 5532 {