diff --git a/internal/capacity/drainer.go b/internal/capacity/drainer.go index 4ca7e10..c6fb3df 100644 --- a/internal/capacity/drainer.go +++ b/internal/capacity/drainer.go @@ -250,7 +250,7 @@ func (d *drainer) processContainerInstances(instanceIDs []string, callback func( return xerrors.Errorf("failed to list container instances: %w", err) } if pageErr != nil { - return xerrors.Errorf("failed to list container instances: %w", err) + return xerrors.Errorf("failed to list container instances: %w", pageErr) } return nil