Commit f4cf5edd authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

error message improvements

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 5566e442
Showing with 4 additions and 3 deletions
+4 -3
...@@ -669,8 +669,8 @@ void parse_rcfile(FILE *rcstream ...@@ -669,8 +669,8 @@ void parse_rcfile(FILE *rcstream
parse_include(ptr); parse_include(ptr);
} else if (strcasecmp(keyword, "syntax") == 0) { } else if (strcasecmp(keyword, "syntax") == 0) {
if (endsyntax != NULL && endcolor == NULL) if (endsyntax != NULL && endcolor == NULL)
rcfile_error( rcfile_error(N_("Syntax %s has no color commands"),
N_("Previous syntax has no color commands")); endsyntax->desc);
parse_syntax(ptr); parse_syntax(ptr);
} else if (strcasecmp(keyword, "color") == 0) } else if (strcasecmp(keyword, "color") == 0)
parse_colors(ptr, FALSE); parse_colors(ptr, FALSE);
...@@ -836,7 +836,8 @@ void parse_rcfile(FILE *rcstream ...@@ -836,7 +836,8 @@ void parse_rcfile(FILE *rcstream
} }
if (endsyntax != NULL && endcolor == NULL) 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); free(buf);
fclose(rcstream); fclose(rcstream);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment