Mercurial > vim
diff src/if_tcl.c @ 26917:d91aea2a612c v8.2.3987
patch 8.2.3987: error messages are spread out
Commit: https://github.com/vim/vim/commit/1d423ef75fc8bce2edfd2aab61cc9beaa63e31aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 2 21:26:16 2022 +0000
patch 8.2.3987: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jan 2022 22:30:04 +0100 |
parents | d02d40f0261c |
children | 005ebb9c8b8f |
line wrap: on
line diff
--- a/src/if_tcl.c +++ b/src/if_tcl.c @@ -1710,7 +1710,7 @@ tclinit(exarg_T *eap) #ifdef DYNAMIC_TCL if (!tcl_enabled(TRUE)) { - emsg(_("E571: Sorry, this command is disabled: the Tcl library could not be loaded.")); + emsg(_(e_sorry_this_command_is_disabled_tcl_library_could_not_be_loaded)); return FAIL; } #endif @@ -1874,7 +1874,7 @@ tclexit(int error) { char buf[50]; - sprintf(buf, _("E572: exit code %d"), tclinfo.exitvalue); + sprintf(buf, _(e_exit_code_nr), tclinfo.exitvalue); tclerrmsg(buf); if (tclinfo.exitvalue == 0) {