Mercurial > vim
diff src/os_unix.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 | 3c1dcb63f579 |
children | d4e61d61afd9 |
line wrap: on
line diff
--- a/src/os_unix.c +++ b/src/os_unix.c @@ -2702,7 +2702,7 @@ mch_FullName( #endif l = mch_chdir((char *)olddir); if (l != 0) - emsg(_(e_prev_dir)); + emsg(_(e_cannot_go_back_to_previous_directory)); } #ifdef HAVE_FCHDIR if (fd >= 0) @@ -5528,7 +5528,7 @@ mch_job_start(char **argv, job_T *job, j fd_in[0] = mch_open((char *)fname, O_RDONLY, 0); if (fd_in[0] < 0) { - semsg(_(e_notopen), fname); + semsg(_(e_cant_open_file_str), fname); goto failed; } } @@ -5546,7 +5546,7 @@ mch_job_start(char **argv, job_T *job, j fd_out[1] = mch_open((char *)fname, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd_out[1] < 0) { - semsg(_(e_notopen), fname); + semsg(_(e_cant_open_file_str), fname); goto failed; } } @@ -5560,7 +5560,7 @@ mch_job_start(char **argv, job_T *job, j fd_err[1] = mch_open((char *)fname, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd_err[1] < 0) { - semsg(_(e_notopen), fname); + semsg(_(e_cant_open_file_str), fname); goto failed; } } @@ -6627,7 +6627,7 @@ mch_expand_wildcards( */ if ((tempname = vim_tempname('o', FALSE)) == NULL) { - emsg(_(e_notmp)); + emsg(_(e_cant_get_temp_file_name)); return FAIL; } @@ -6888,7 +6888,7 @@ mch_expand_wildcards( if (i != (int)len) { // unexpected read error - semsg(_(e_notread), tempname); + semsg(_(e_cant_read_file_str), tempname); vim_free(tempname); vim_free(buffer); return FAIL; @@ -7594,7 +7594,7 @@ mch_libcall( if (!success) { - semsg(_(e_libcall), funcname); + semsg(_(e_library_call_failed_for_str), funcname); return FAIL; }