aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-20 18:17:06 +0000
committergingerBill <bill@gingerbill.org>2024-03-20 18:17:06 +0000
commitf39b34a8b7ce026d608532451f4f2aada40f5102 (patch)
tree488f2465df65297010a18d1148c90347fd475820 /src/parser.cpp
parent1cc5e2380158216ad65b4d9622c847479e495ebf (diff)
Fix error message
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 54b0390bf..6a7be8a7c 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -5453,7 +5453,7 @@ gb_internal AstPackage *try_add_import_path(Parser *p, String path, String const
}
}
if (files_with_ext == 0 || files_to_reserve == 1) {
- if (files_to_reserve == 1) {
+ if (files_with_ext != 0) {
syntax_error(pos, "Directory contains no .odin files for the specified platform: %.*s", LIT(rel_path));
} else {
syntax_error(pos, "Empty directory that contains no .odin files: %.*s", LIT(rel_path));