mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #3660
This also prevents a segfault if you do `odin build .odin -file`
This commit is contained in:
@@ -2657,6 +2657,10 @@ int main(int arg_count, char const **arg_ptr) {
|
|||||||
gb_printf_err("Expected either a directory or a .odin file, got '%.*s'\n", LIT(init_filename));
|
gb_printf_err("Expected either a directory or a .odin file, got '%.*s'\n", LIT(init_filename));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (!gb_file_exists(cast(const char*)init_filename.text)) {
|
||||||
|
gb_printf_err("The file '%.*s' was not found.\n", LIT(init_filename));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user