mirror of
https://github.com/slhaf/Partner.git
synced 2026-10-25 19:03:48 +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)
|
executeOrder(modules, runningFlowContext)
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
runningFlowContext.status.ok = false
|
runningFlowContext.status.errors.add(e.localizedMessage)
|
||||||
runningFlowContext.status.errMsg.add(e.localizedMessage)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return runningFlowContext
|
return runningFlowContext
|
||||||
|
|||||||
Reference in New Issue
Block a user