Track line number for error reports

This commit is contained in:
Eric Fischer
2014-02-06 20:44:39 -08:00
parent 46120e84c4
commit a74444af28
3 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ void process(FILE *f) {
}
if (jp->error != NULL) {
fprintf(stderr, "%s\n", jp->error);
fprintf(stderr, "%d: %s\n", jp->line, jp->error);
}
}