From d88be5be80f47826397d12ffc90150a443821f2b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 4 Jan 2022 19:57:55 +0000 Subject: patch 8.2.4003: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h. --- src/if_cscope.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/if_cscope.c') diff --git a/src/if_cscope.c b/src/if_cscope.c index e0dd759ab4..28f7db2d27 100644 --- 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)); -- cgit v1.2.3