summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0a3d00b..8f696b0 100644
--- a/main.c
+++ b/main.c
@@ -55,7 +55,10 @@ int main(int argc, char **argv) {
fprint_parsed_file(stdout, &f);
tokr_free(&t);
- types_file(&f);
+ if (!types_file(&f)) {
+ err_fprint(TEXT_IMPORTANT("Errors occured while determining types.\n"));
+ return EXIT_FAILURE;
+ }
/* TODO (eventually): use a tmp file (don't overwrite old output if there's an error) */
const char *c_out_filename = "out.c";