Skip to content

Commit ad952cb

Browse files
authored
Merge pull request #1040 from JackJiang1234/master
Update AgentService.GetAgents.cs
2 parents a3aabe2 + ba82737 commit ad952cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Infrastructure/BotSharp.Core/Agents/Services/AgentService.GetAgents.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public async Task<Agent> GetAgent(string id)
4848

4949
if (profile == null)
5050
{
51-
_logger.LogError($"Can't find agent {id}");
52-
return null;
51+
//_logger.LogError($"Can't find agent {id}");
52+
throw new ArgumentException($"Can't find agent {id}");
5353
}
5454

5555
// Load llm config

0 commit comments

Comments
 (0)