Skip to content

Commit

Permalink
Added better error message for invalid class/struct member
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Sep 24, 2017
1 parent cfc1bfd commit 48f9e53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scripting/backend/codegen.cpp
Expand Up @@ -6464,6 +6464,12 @@ FxExpression *FxMemberIdentifier::Resolve(FCompileContext& ctx)
}
}
}
else
{
ScriptPosition.Message(MSG_ERROR, "%s is not a member of %s", Identifier.GetChars(), ccls->TypeName.GetChars());
delete this;
return nullptr;
}
}
}

Expand Down

0 comments on commit 48f9e53

Please sign in to comment.