Mercurial > vim
comparison src/os_win32.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 | fc859aea8cec |
children | d4e61d61afd9 |
comparison
equal
deleted
inserted
replaced
26876:601a973ac16c | 26877:06a137af96f8 |
---|---|
714 if (!hLibintlDLL) | 714 if (!hLibintlDLL) |
715 { | 715 { |
716 if (p_verbose > 0) | 716 if (p_verbose > 0) |
717 { | 717 { |
718 verbose_enter(); | 718 verbose_enter(); |
719 semsg(_(e_loadlib), GETTEXT_DLL, GetWin32Error()); | 719 semsg(_(e_could_not_load_library_str_str), GETTEXT_DLL, GetWin32Error()); |
720 verbose_leave(); | 720 verbose_leave(); |
721 } | 721 } |
722 return 0; | 722 return 0; |
723 } | 723 } |
724 for (i = 0; libintl_entry[i].name != NULL | 724 for (i = 0; libintl_entry[i].name != NULL |
729 { | 729 { |
730 dyn_libintl_end(); | 730 dyn_libintl_end(); |
731 if (p_verbose > 0) | 731 if (p_verbose > 0) |
732 { | 732 { |
733 verbose_enter(); | 733 verbose_enter(); |
734 semsg(_(e_loadfunc), libintl_entry[i].name); | 734 semsg(_(e_could_not_load_library_function_str), libintl_entry[i].name); |
735 verbose_leave(); | 735 verbose_leave(); |
736 } | 736 } |
737 return 0; | 737 return 0; |
738 } | 738 } |
739 } | 739 } |
5309 ifd[0] = job_io_file_open(fname, GENERIC_READ, | 5309 ifd[0] = job_io_file_open(fname, GENERIC_READ, |
5310 FILE_SHARE_READ | FILE_SHARE_WRITE, | 5310 FILE_SHARE_READ | FILE_SHARE_WRITE, |
5311 &saAttr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL); | 5311 &saAttr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL); |
5312 if (ifd[0] == INVALID_HANDLE_VALUE) | 5312 if (ifd[0] == INVALID_HANDLE_VALUE) |
5313 { | 5313 { |
5314 semsg(_(e_notopen), fname); | 5314 semsg(_(e_cant_open_file_str), fname); |
5315 goto failed; | 5315 goto failed; |
5316 } | 5316 } |
5317 } | 5317 } |
5318 else if (!use_null_for_in | 5318 else if (!use_null_for_in |
5319 && (!create_pipe_pair(ifd) | 5319 && (!create_pipe_pair(ifd) |
5327 ofd[1] = job_io_file_open(fname, GENERIC_WRITE, | 5327 ofd[1] = job_io_file_open(fname, GENERIC_WRITE, |
5328 FILE_SHARE_READ | FILE_SHARE_WRITE, | 5328 FILE_SHARE_READ | FILE_SHARE_WRITE, |
5329 &saAttr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL); | 5329 &saAttr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL); |
5330 if (ofd[1] == INVALID_HANDLE_VALUE) | 5330 if (ofd[1] == INVALID_HANDLE_VALUE) |
5331 { | 5331 { |
5332 semsg(_(e_notopen), fname); | 5332 semsg(_(e_cant_open_file_str), fname); |
5333 goto failed; | 5333 goto failed; |
5334 } | 5334 } |
5335 } | 5335 } |
5336 else if (!use_null_for_out && | 5336 else if (!use_null_for_out && |
5337 (!CreatePipe(&ofd[0], &ofd[1], &saAttr, 0) | 5337 (!CreatePipe(&ofd[0], &ofd[1], &saAttr, 0) |
5345 efd[1] = job_io_file_open(fname, GENERIC_WRITE, | 5345 efd[1] = job_io_file_open(fname, GENERIC_WRITE, |
5346 FILE_SHARE_READ | FILE_SHARE_WRITE, | 5346 FILE_SHARE_READ | FILE_SHARE_WRITE, |
5347 &saAttr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL); | 5347 &saAttr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL); |
5348 if (efd[1] == INVALID_HANDLE_VALUE) | 5348 if (efd[1] == INVALID_HANDLE_VALUE) |
5349 { | 5349 { |
5350 semsg(_(e_notopen), fname); | 5350 semsg(_(e_cant_open_file_str), fname); |
5351 goto failed; | 5351 goto failed; |
5352 } | 5352 } |
5353 } | 5353 } |
5354 else if (!use_out_for_err && !use_null_for_err && | 5354 else if (!use_out_for_err && !use_null_for_err && |
5355 (!CreatePipe(&efd[0], &efd[1], &saAttr, 0) | 5355 (!CreatePipe(&efd[0], &efd[1], &saAttr, 0) |