Error messages refer to "undefined" symbols and sections

This commit is contained in:
Rangi42
2025-08-08 19:47:42 -04:00
parent 9fc83efe06
commit 2130a5ba1f
38 changed files with 86 additions and 79 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ void layout_PlaceSection(std::string const &name, bool isOptional) {
Section *section = sect_GetSection(name.c_str());
if (!section) {
if (!isOptional) {
lexer_Error("Unknown section \"%s\"", name.c_str());
lexer_Error("Undefined section \"%s\"", name.c_str());
}
return;
}