mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
Print a clearer error message if a function name is encountered without parentheses.
This commit is contained in:
parent
010fd038be
commit
514bcfb128
1 changed files with 8 additions and 1 deletions
|
@ -5075,7 +5075,14 @@ FxExpression *FxIdentifier::Resolve(FCompileContext& ctx)
|
|||
}
|
||||
else
|
||||
{
|
||||
ScriptPosition.Message(MSG_ERROR, "Invalid member identifier '%s'\n", Identifier.GetChars());
|
||||
if (sym->IsKindOf(RUNTIME_CLASS(PFunction)))
|
||||
{
|
||||
ScriptPosition.Message(MSG_ERROR, "Function '%s' used without ().\n", Identifier.GetChars());
|
||||
}
|
||||
else
|
||||
{
|
||||
ScriptPosition.Message(MSG_ERROR, "Invalid member identifier '%s'.\n", Identifier.GetChars());
|
||||
}
|
||||
delete this;
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue