Skip to content

Commit de9dc48

Browse files
committed
Check error
1 parent f252dee commit de9dc48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ func (c *Client) CreateWorkflowInstance(ctx context.Context, options WorkflowIns
6767
defer span.End()
6868

6969
for _, propagator := range c.backend.ContextPropagators() {
70-
propagator.Inject(ctx, metadata)
70+
if err := propagator.Inject(ctx, metadata); err != nil {
71+
return nil, fmt.Errorf("injecting context to propagate: %w", err)
72+
}
7173
}
7274

7375
startedEvent := history.NewPendingEvent(

0 commit comments

Comments
 (0)