Mercurial > vim
diff src/if_cscope.c @ 26948:51ddf6740ac6 v8.2.4003
patch 8.2.4003: error messages are spread out
Commit: https://github.com/vim/vim/commit/d88be5be80f47826397d12ffc90150a443821f2b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 4 19:57:55 2022 +0000
patch 8.2.4003: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jan 2022 21:00:05 +0100 |
parents | d91aea2a612c |
children | 92e0b1f2b72f |
line wrap: on
line diff
--- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -814,7 +814,7 @@ err_closing: switch (csinfo[i].pid = fork()) { case -1: - (void)emsg(_("E622: Could not fork for cscope")); + (void)emsg(_(e_could_not_fork_for_cscope)); goto err_closing; case 0: // child: run cscope. if (dup2(to_cs[0], STDIN_FILENO) == -1) @@ -971,7 +971,7 @@ err_closing: if (!created) { PERROR(_("cs_create_connection exec failed")); - (void)emsg(_("E623: Could not spawn cscope process")); + (void)emsg(_(e_could_not_spawn_cscope_process)); goto err_closing; } // else @@ -1316,7 +1316,7 @@ cs_insert_filelist( case FILEINFO_READ_FAIL: // CreateFile() failed if (p_csverbose) { - char *cant_msg = _("E625: cannot open cscope database: %s"); + char *cant_msg = _(e_cannot_open_cscope_database_str); char *winmsg = GetWin32Error(); if (winmsg != NULL) @@ -1332,7 +1332,7 @@ cs_insert_filelist( case FILEINFO_INFO_FAIL: // GetFileInformationByHandle() failed if (p_csverbose) - (void)emsg(_("E626: cannot get cscope database information")); + (void)emsg(_(e_cannot_get_cscope_database_information)); return -1; } #endif @@ -2061,7 +2061,7 @@ cs_read_prompt(int i) int epromptlen = (int)strlen(eprompt); int n; - cs_emsg = _("E609: Cscope error: %s"); + cs_emsg = _(e_cscope_error_str); // compute maximum allowed len for Cscope error message maxlen = (int)(IOSIZE - strlen(cs_emsg));