Display thread type name in error message (#192)

This commit is contained in:
Chris
2025-07-15 14:11:31 -07:00
committed by GitHub
Unverified
parent f0dc661c3e
commit e6d611abe4
@@ -203,7 +203,7 @@ public abstract class Agent
if (thread is not TThreadType concreteThreadType)
{
throw new NotSupportedException($"{this.GetType().Name} currently only supports agent threads of type {nameof(TThreadType)}.");
throw new NotSupportedException($"{this.GetType().Name} currently only supports agent threads of type {typeof(TThreadType).Name}.");
}
return concreteThreadType;