commit f4cf5edd06e73dfb5f4e4a23a3d3e4922fde37f7
parent 5566e442b1e55d2c13746b1ea795d27a2c655b59
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 26 May 2006 17:06:05 +0000
error message improvements
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git 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);