1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2025-04-21 12:27:27 +03:00

tools/: add error reporting to text2edit

This commit is contained in:
Werner Almesberger
2012-07-01 21:29:44 -03:00
parent e4d8355a2d
commit ea3f2a9d6b
4 changed files with 50 additions and 39 deletions

View File

@@ -57,10 +57,9 @@ int main(int argc, char **argv)
(*last)->type = edit_nl;
last = &(*last)->next;
}
*last = text2edit(argv[i]);
*last = text2edit(argv[i], &err);
if (!*last) {
fprintf(stderr, "\"%s\": compilation failed\n",
argv[i]);
fprintf(stderr, "\"%s\": %s\n", argv[i], err);
return 1;
}
}