Skip to content

Commit

Permalink
Join errors for wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Dec 6, 2023
1 parent c653272 commit 5cb41f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/upgradetest/upgrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func waitUpgradeDetailsState(ctx context.Context, f *atesting.Fixture, expectedS
select {
case <-ctx.Done():
if lastErr != nil {
return fmt.Errorf("failed waiting for status (%w): %s", ctx.Err(), lastErr.Error())
return fmt.Errorf("failed waiting for status: %w", errors.Join(ctx.Err(), lastErr)
}
return ctx.Err()
case <-t.C:
Expand Down

0 comments on commit 5cb41f4

Please sign in to comment.