Module folder working
This commit is contained in:
@@ -693,9 +693,9 @@ parse_file(Ast_File *file){
|
||||
assert(file);
|
||||
|
||||
Scratch scratch;
|
||||
file->filecontent = os_read_file(pctx->perm, file->filename.s);
|
||||
file->filecontent = os_read_file(pctx->perm, file->absolute_path);
|
||||
if(file->filecontent.len == 0){
|
||||
compiler_error(file->pos, "Failed to open file \"%Q\"", file->filename);
|
||||
compiler_error(file->pos, "Failed to open file \"%Q\"", file->absolute_path);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user