summaryrefslogtreecommitdiffstats
path: root/src/clientserver.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-01 19:33:50 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-01 19:33:50 +0000
commitcbadefe25a27ded93548eaa7a325d2a04bf55d7c (patch)
treec0411fb9bfe3e4728d319817f98841df6fc8c6d6 /src/clientserver.c
parent1f4a3457a3e55cdacd70ab0d5be587c248fb1ce8 (diff)
patch 8.2.3975: error messages are spread outv8.2.3975
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/clientserver.c')
-rw-r--r--src/clientserver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clientserver.c b/src/clientserver.c
index 2d234f2ca5..2fefcc4151 100644
--- a/src/clientserver.c
+++ b/src/clientserver.c
@@ -709,7 +709,7 @@ check_connection(void)
make_connection();
if (X_DISPLAY == NULL)
{
- emsg(_("E240: No connection to the X server"));
+ emsg(_(e_no_connection_to_x_server));
return FAIL;
}
return OK;
@@ -759,7 +759,7 @@ remote_common(typval_T *argvars, typval_T *rettv, int expr)
vim_free(r);
}
else
- semsg(_("E241: Unable to send to %s"), server_name);
+ semsg(_(e_unable_to_send_to_str), server_name);
return;
}
@@ -1016,7 +1016,7 @@ f_server2client(typval_T *argvars UNUSED, typval_T *rettv)
if (serverSendReply(server, reply) < 0)
{
- emsg(_("E258: Unable to send to client"));
+ emsg(_(e_unable_to_send_to_client));
return;
}
rettv->vval.v_number = 0;