fix #242: correctly handle UserEmpty in ReadTLDictionary

This commit is contained in:
Wizou 2024-04-04 11:12:59 +02:00
parent abeed476e7
commit f3ca76bb8f
3 changed files with 7 additions and 7 deletions

View file

@ -208,7 +208,7 @@ public class MTProtoGenerator : IIncrementalGenerator
foreach (var nullable in nullables)
makeTL.AppendLine($"\t\t\t0x{nullable.Value:X8} => null,");
makeTL.AppendLine("\t\t\tvar ctorNb => throw new Exception($\"Cannot find type for ctor #{ctorNb:x}\")");
makeTL.AppendLine("\t\t\tvar ctorNb => throw new WTelegram.WTException($\"Cannot find type for ctor #{ctorNb:x}\")");
makeTL.AppendLine("\t\t};");
namespaces["TL"]["Layer"] = makeTL.ToString();
foreach (var namesp in namespaces)