From 4c66a6259cf45fbef0eb14d00488fac8c469ce7f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 6 Aug 2018 19:31:46 +0200 Subject: [PATCH] tweaks: slightly improve error message when vital function is unmapped This fails to fix https://savannah.gnu.org/bugs/?54449, because it would take far too much code for an exceptional case. --- src/rcfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index cbf39dc2..87832f06 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -882,8 +882,8 @@ static void check_vitals_mapped(void) if (f->func == vitals[v] && f->menus & inmenus[v]) { const sc *s = first_sc_for(inmenus[v], f->func); if (!s) { - fprintf(stderr, _("Fatal error: no keys mapped for function " - "\"%s\". Exiting.\n"), f->desc); + fprintf(stderr, _("No key is bound to function '%s' in " + "some menu. Exiting.\n"), f->desc); fprintf(stderr, _("If needed, use nano with the -I option " "to adjust your nanorc settings.\n")); exit(1);