summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-05 22:19:27 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-05 22:19:27 +0000
commit40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00 (patch)
treebe6586866cf712e434252f74b185d35f6a49eed3 /src/channel.c
parent4700398e384f38f752b432e187462f404b96847d (diff)
patch 8.2.3750: error messages are everywherev8.2.3750
Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c
index 7514d63855..634312412c 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1210,7 +1210,8 @@ channel_set_options(channel_T *channel, jobopt_T *opt)
{
buf = buflist_findnr(opt->jo_io_buf[PART_OUT]);
if (buf == NULL)
- semsg(_(e_nobufnr), (long)opt->jo_io_buf[PART_OUT]);
+ semsg(_(e_buffer_nr_does_not_exist),
+ (long)opt->jo_io_buf[PART_OUT]);
}
else
{
@@ -1257,7 +1258,8 @@ channel_set_options(channel_T *channel, jobopt_T *opt)
{
buf = buflist_findnr(opt->jo_io_buf[PART_ERR]);
if (buf == NULL)
- semsg(_(e_nobufnr), (long)opt->jo_io_buf[PART_ERR]);
+ semsg(_(e_buffer_nr_does_not_exist),
+ (long)opt->jo_io_buf[PART_ERR]);
}
else
{