show codegen error message when compilation failure
This commit is contained in:
parent
1d9410638d
commit
9424f0b9c0
|
@ -34,6 +34,7 @@ pic_load_stdlib(pic_state *pic)
|
|||
|
||||
proc = pic_codegen(pic, v);
|
||||
if (proc == NULL) {
|
||||
fputs(pic->errmsg, stderr);
|
||||
fputs("fatal error: built-in.scm compilation failure", stderr);
|
||||
abort();
|
||||
}
|
||||
|
|
|
@ -171,6 +171,7 @@ exec_file(pic_state *pic, const char *fname)
|
|||
|
||||
proc = pic_codegen(pic, v);
|
||||
if (proc == NULL) {
|
||||
fputs(pic->errmsg, stderr);
|
||||
fprintf(stderr, "fatal error: %s compilation failure\n", fname);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue