Commit 0af5f1a3 authored by Lev Walkin's avatar Lev Walkin

more debugging

parent 659c63b7
...@@ -207,15 +207,15 @@ process_line(const char *fname, char *line, int lineno) { ...@@ -207,15 +207,15 @@ process_line(const char *fname, char *line, int lineno) {
case '#': /* This is a comment */ case '#': /* This is a comment */
return 0; return 0;
default: default:
fprintf(stderr, "%s: Missing '<' after whitespace\n", fname); fprintf(stderr, "%s: Missing '<' after whitespace at line %d\n", fname, lineno);
exit(EX_DATAERR); exit(EX_DATAERR);
} }
/* Find a tag closing angle bracket */ /* Find a tag closing angle bracket */
for(; *line && *line != '>'; line++) { for(; *line && *line != '>'; line++) {
if(*line < ' ') { if(*line < ' ') {
fprintf(stderr, "%s: Invalid charset (%d)\n", fprintf(stderr, "%s: Invalid charset (%d) at line %d\n",
fname, *(const unsigned char *)line); fname, *(const unsigned char *)line, lineno);
exit(EX_DATAERR); exit(EX_DATAERR);
} }
} }
......
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