From 40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 5 Dec 2021 22:19:27 +0000 Subject: patch 8.2.3750: error messages are everywhere Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names. --- src/channel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/channel.c') 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 { -- cgit v1.2.3