From 9fb9c50a0bc7b93b3bb365357d979e22e895a97d Mon Sep 17 00:00:00 2001 From: nub31 Date: Mon, 9 Feb 2026 15:52:40 +0100 Subject: [PATCH] fix error message --- compiler/TypeResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/TypeResolver.cs b/compiler/TypeResolver.cs index 25c56e9..74944a2 100644 --- a/compiler/TypeResolver.cs +++ b/compiler/TypeResolver.cs @@ -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; }