mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Clarify error message when a section lacks a type
The previous commit has made this precision possible
This commit is contained in:
@@ -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