[enhance] Add rich context to RecursionError messages (#1160)

This commit is contained in:
Christian Byrne
2025-07-25 12:09:04 -07:00
committed by GitHub
parent 83795d5db1
commit 7802213887
4 changed files with 27 additions and 7 deletions

View File

@@ -347,7 +347,7 @@ describe("SubgraphNode Execution", () => {
const executableNodes = new Map()
expect(() => {
subgraphNode.getInnerNodes(executableNodes)
}).toThrow(/while flattening subgraph/i)
}).toThrow(/Circular reference detected.*infinite loop in the subgraph hierarchy/i)
})
it("should handle nested subgraph execution", () => {