diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 575de1d5dd3..d206c722c37 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -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) diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 65f2d875c5d..f7117f4498b 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -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)