error message improvements

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-05-26 17:06:05 +00:00
parent 5566e442b1
commit f4cf5edd06
1 changed files with 4 additions and 3 deletions

View File

@ -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);