diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-05 20:24:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-05 20:24:39 +0000 |
commit | d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf (patch) | |
tree | 604109254c7057942fce5c1af26fdd1bc36c066f /src/job.c | |
parent | bb8cac56d9c398a2b546d9c81c15e8c3d8fd811e (diff) |
patch 8.2.4012: error messages are spread outv8.2.4012
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1320,7 +1320,7 @@ job_start( && (!(opt.jo_set & (JO_OUT_NAME << (part - PART_OUT))) || *opt.jo_io_name[part] == NUL)) { - emsg(_("E920: _io file requires _name to be set")); + emsg(_(e_io_file_requires_name_to_be_set)); goto theend; } @@ -1338,7 +1338,7 @@ job_start( } else if (!(opt.jo_set & JO_IN_NAME)) { - emsg(_("E915: in_io buffer requires in_buf or in_name to be set")); + emsg(_(e_in_io_buffer_requires_in_buf_or_in_name_to_be_set)); } else buf = buflist_find_by_name(opt.jo_io_name[PART_IN], FALSE); @@ -1356,7 +1356,7 @@ job_start( } else s = opt.jo_io_name[PART_IN]; - semsg(_("E918: buffer must be loaded: %s"), s); + semsg(_(e_buffer_must_be_loaded_str), s); goto theend; } job->jv_in_buf = buf; @@ -1781,7 +1781,7 @@ get_job_arg(typval_T *tv) job = tv->vval.v_job; if (job == NULL) - emsg(_("E916: not a valid job")); + emsg(_(e_not_valid_job)); return job; } |