mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Display thread type name in error message (#192)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user