chore: enhance error message when handling PluginInvokeError (#22908)

This commit is contained in:
Yeuoly
2025-07-24 21:58:39 +08:00
committed by GitHub
parent 45cebf09b0
commit 206bc4b36d
3 changed files with 47 additions and 4 deletions

View File

@@ -111,5 +111,5 @@ def test_tool_node_on_tool_invoke_error(monkeypatch: pytest.MonkeyPatch):
assert isinstance(result, NodeRunResult)
assert result.status == WorkflowNodeExecutionStatus.FAILED
assert "oops" in result.error
assert "Failed to transform tool message:" in result.error
assert "Failed to invoke tool" in result.error
assert result.error_type == "ToolInvokeError"