mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Clarify error message when a section lacks a type
The previous commit has made this precision possible
This commit is contained in:
1 parent
9fd4ba90cc
commit
e45a422da3
1 file changed
+3
-1
@@ -229,7 +229,9 @@ Section *sect_GetSection(std::string const &name) {
|
||||
static void doSanityChecks(Section §ion) {
|
||||
// Sanity check the section's type
|
||||
if (section.type < 0 || section.type >= SECTTYPE_INVALID) {
|
||||
error(nullptr, 0, "Section \"%s\" has an invalid type", section.name.c_str());
|
||||
// This is trapped early in RGBDS objects (because then the format is not parseable),
|
||||
// which leaves SDAS objects.
|
||||
error(nullptr, 0, "Section \"%s\" has not been assigned a type by a linker script", section.name.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user