summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/types.c b/types.c
index 480d146..3d657ed 100644
--- a/types.c
+++ b/types.c
@@ -3878,7 +3878,6 @@ top:
{
char *contents = read_file_contents(tr->allocr, filename, s->where);
if (!contents) {
- tr->had_include_err = true;
success = false; goto nms_done;
}
@@ -3919,7 +3918,11 @@ top:
tr->block = prev_block;
}
if (inc_f) inc_f->flags &= (IncFileFlags)~(IncFileFlags)INC_FILE_INCLUDING;
- if (!success) return false;
+ if (!success) {
+ // give up on typing if #include failed
+ tr->had_include_err = true;
+ return false;
+ }
} break;
case STMT_MESSAGE: {
Message *m = s->message;