comparison src/job.c @ 26439:b18f3b0f317c v8.2.3750

patch 8.2.3750: error messages are everywhere Commit: https://github.com/vim/vim/commit/40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 5 22:19:27 2021 +0000 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Dec 2021 23:30:05 +0100
parents c421c9599d83
children 65b4109a4297
comparison
equal deleted inserted replaced
26438:c725b8e17f1f 26439:b18f3b0f317c
223 semsg(_(e_invargNval), hi->hi_key, tv_get_string(item)); 223 semsg(_(e_invargNval), hi->hi_key, tv_get_string(item));
224 return FAIL; 224 return FAIL;
225 } 225 }
226 if (buflist_findnr(opt->jo_io_buf[part]) == NULL) 226 if (buflist_findnr(opt->jo_io_buf[part]) == NULL)
227 { 227 {
228 semsg(_(e_nobufnr), (long)opt->jo_io_buf[part]); 228 semsg(_(e_buffer_nr_does_not_exist),
229 (long)opt->jo_io_buf[part]);
229 return FAIL; 230 return FAIL;
230 } 231 }
231 } 232 }
232 else if (STRCMP(hi->hi_key, "out_modifiable") == 0 233 else if (STRCMP(hi->hi_key, "out_modifiable") == 0
233 || STRCMP(hi->hi_key, "err_modifiable") == 0) 234 || STRCMP(hi->hi_key, "err_modifiable") == 0)
473 return FAIL; 474 return FAIL;
474 } 475 }
475 opt->jo_bufnr_buf = buflist_findnr(nr); 476 opt->jo_bufnr_buf = buflist_findnr(nr);
476 if (opt->jo_bufnr_buf == NULL) 477 if (opt->jo_bufnr_buf == NULL)
477 { 478 {
478 semsg(_(e_nobufnr), (long)nr); 479 semsg(_(e_buffer_nr_does_not_exist), (long)nr);
479 return FAIL; 480 return FAIL;
480 } 481 }
481 if (opt->jo_bufnr_buf->b_nwindows == 0 482 if (opt->jo_bufnr_buf->b_nwindows == 0
482 || opt->jo_bufnr_buf->b_term == NULL) 483 || opt->jo_bufnr_buf->b_term == NULL)
483 { 484 {
1330 // check that we can find the buffer before starting the job 1331 // check that we can find the buffer before starting the job
1331 if (opt.jo_set & JO_IN_BUF) 1332 if (opt.jo_set & JO_IN_BUF)
1332 { 1333 {
1333 buf = buflist_findnr(opt.jo_io_buf[PART_IN]); 1334 buf = buflist_findnr(opt.jo_io_buf[PART_IN]);
1334 if (buf == NULL) 1335 if (buf == NULL)
1335 semsg(_(e_nobufnr), (long)opt.jo_io_buf[PART_IN]); 1336 semsg(_(e_buffer_nr_does_not_exist),
1337 (long)opt.jo_io_buf[PART_IN]);
1336 } 1338 }
1337 else if (!(opt.jo_set & JO_IN_NAME)) 1339 else if (!(opt.jo_set & JO_IN_NAME))
1338 { 1340 {
1339 emsg(_("E915: in_io buffer requires in_buf or in_name to be set")); 1341 emsg(_("E915: in_io buffer requires in_buf or in_name to be set"));
1340 } 1342 }