mirror of git://git.sv.gnu.org/nano.git
error message improvements
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
5566e442b1
commit
f4cf5edd06
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue