mirror of
https://github.com/slhaf/Partner.git
synced 2026-10-25 02:43:49 +00:00
fix(AgentRuntime): repair exception handling logic in method executeTurn
This commit is contained in:
+1
-2
@@ -52,8 +52,7 @@ object AgentRuntime {
|
||||
executeOrder(modules, runningFlowContext)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
runningFlowContext.status.ok = false
|
||||
runningFlowContext.status.errMsg.add(e.localizedMessage)
|
||||
runningFlowContext.status.errors.add(e.localizedMessage)
|
||||
}
|
||||
|
||||
return runningFlowContext
|
||||
|
||||
Reference in New Issue
Block a user