commit 4c66a6259cf45fbef0eb14d00488fac8c469ce7f
parent db1893ef2d3e295b8878602b18da429c27cfc625
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 6 Aug 2018 19:31:46 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);