From 1d423ef75fc8bce2edfd2aab61cc9beaa63e31aa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 2 Jan 2022 21:26:16 +0000 Subject: patch 8.2.3987: error messages are spread out Problem: Error messages are spread out. Solution: Move more error messages to errors.h. --- src/if_tcl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/if_tcl.c') diff --git a/src/if_tcl.c b/src/if_tcl.c index 65f25c1bef..75f904a9ef 100644 --- 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) { -- cgit v1.2.3