diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-26 23:51:13 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-26 23:51:13 +0100 |
| commit | b78e970698cc154474c3c6a8b49214f9e3d4dfe7 (patch) | |
| tree | a4e6b2849cddbece79551c9e800d0913e1348fc0 /src/parser.c | |
| parent | 5b8be2593821c7b30adf010bc90dfa8ab2930a72 (diff) | |
Fix issue #48 dependency issue
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index a0a215789..f46a24b45 100644 --- a/src/parser.c +++ b/src/parser.c @@ -3866,6 +3866,10 @@ ParseFileError parse_files(Parser *p, char *init_filename) { if (err != ParseFile_None) { if (err == ParseFile_EmptyFile) { + if (str_eq(import_path, init_fullpath)) { + gb_printf_err("Initial file is empty - %.*s\n", LIT(init_fullpath)); + gb_exit(1); + } return ParseFile_None; } |