fix error message

This commit is contained in:
nub31
2026-02-09 15:52:40 +01:00
parent 89a827fdef
commit 9fb9c50a0b

View File

@@ -60,7 +60,7 @@ public sealed class TypeResolver(string fileName)
{
var structType = structTypes.GetValueOrDefault(type.Name.Ident);
if (structType == null)
throw new CompileException(Diagnostic.Error($"Unknown custom type: {type}").At(fileName, type).Build());
throw new CompileException(Diagnostic.Error($"Unknown custom type: {type.Name.Ident}").At(fileName, type).Build());
return structType;
}