DIRECTOR: LINGO: Better diagnostics for unknown fields

This commit is contained in:
Eugene Sandulenko 2020-01-16 18:20:45 +01:00
parent a2c971c925
commit f601168016
2 changed files with 2 additions and 2 deletions

View File

@ -1479,7 +1479,7 @@ YY_RULE_SETUP
field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str());
if (!g_lingo->_theEntityFields.contains(field)) {
error("LEXER: Unhandled the field %s", ptr);
error("LEXER: Unhandled the field %s of %s", field.c_str(), ptr);
}
if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity)

View File

@ -247,7 +247,7 @@ the[ \t]+[[:alpha:]]+[ \t]+of[ \t]+{identifier} {
field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str());
if (!g_lingo->_theEntityFields.contains(field)) {
error("LEXER: Unhandled the field %s", ptr);
error("LEXER: Unhandled the field %s of %s", field.c_str(), ptr);
}
if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity)