Skip to content

Commit

Permalink
Fix wrap order in block issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGackstatter committed Mar 13, 2024
1 parent 80eb3f1 commit 8e94718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testsuite/mock/blockissuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ func (i *BlockIssuer) getReferencesWithRetry(ctx context.Context, parentsCount i
case <-timeout.C:
return nil, ierrors.New("timeout while trying to select tips and determine references")
case <-ctx.Done():
return nil, ierrors.Errorf("context canceled whilst trying to select tips and determine references: %w", ctx.Err())
return nil, ierrors.Wrap(ctx.Err(), "context canceled whilst trying to select tips and determine references")
}
}
}
Expand Down

0 comments on commit 8e94718

Please sign in to comment.