From f4cf5edd06e73dfb5f4e4a23a3d3e4922fde37f7 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 26 May 2006 17:06:05 +0000 Subject: [PATCH] error message improvements git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/rcfile.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index bebf2b99..d9b49f4a 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -669,8 +669,8 @@ void parse_rcfile(FILE *rcstream parse_include(ptr); } else if (strcasecmp(keyword, "syntax") == 0) { if (endsyntax != NULL && endcolor == NULL) - rcfile_error( - N_("Previous syntax has no color commands")); + rcfile_error(N_("Syntax %s has no color commands"), + endsyntax->desc); parse_syntax(ptr); } else if (strcasecmp(keyword, "color") == 0) parse_colors(ptr, FALSE); @@ -836,7 +836,8 @@ void parse_rcfile(FILE *rcstream } if (endsyntax != NULL && endcolor == NULL) - rcfile_error(N_("Syntax has no color commands")); + rcfile_error(N_("Syntax %s has no color commands"), + endsyntax->desc); free(buf); fclose(rcstream); -- 2.39.5