Skip to content

Commit d3f2031

Browse files
committed
update type check
1 parent 587d44a commit d3f2031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/executor/handlers/workflow/workflow-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class WorkflowBlockHandler implements BlockHandler {
159159
childTraceSpans = this.captureChildWorkflowLogs(executionResult, childWorkflowName, ctx)
160160

161161
logger.info(`Captured ${childTraceSpans.length} child trace spans from failed execution`)
162-
} else if (error.childTraceSpans && Array.isArray(error.childTraceSpans)) {
162+
} else if (ChildWorkflowError.isChildWorkflowError(error)) {
163163
childTraceSpans = error.childTraceSpans
164164
}
165165

0 commit comments

Comments
 (0)