Skip to content

Commit c680aec

Browse files
committed
Propagate catalog query errors in GetPeerflow
1 parent dced923 commit c680aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flow/e2e/test_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ func GetPeerflow(ctx context.Context, catalog *pgx.Conn, tc client.Client, flowN
653653
if err := catalog.QueryRow(
654654
ctx, "select workflow_id from flows where name = $1", flowName,
655655
).Scan(&workflowID); err != nil {
656-
return WorkflowRun{}, nil
656+
return WorkflowRun{}, fmt.Errorf("failed to get workflow_id for flow %s: %w", flowName, err)
657657
}
658658
return WorkflowRun{WorkflowRun: tc.GetWorkflow(ctx, workflowID, ""), c: tc}, nil
659659
}

0 commit comments

Comments
 (0)