Skip to content

Commit

Permalink
more descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ishustava committed Aug 6, 2022
1 parent 972ca58 commit 92bfb46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control-plane/connect-inject/peering_acceptor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package connectinject
import (
"context"
"errors"
"fmt"
"strconv"
"sync"
"time"
Expand Down Expand Up @@ -273,7 +274,7 @@ func (r *PeeringAcceptorController) updateStatus(ctx context.Context, acceptorOb
var acceptor *consulv1alpha1.PeeringAcceptor
err := r.Client.Get(ctx, acceptorObjKey, acceptor)
if err != nil {
return err
return fmt.Errorf("error fetching acceptor resource before status update: %w", err)
}
acceptor.Status.SecretRef = &consulv1alpha1.SecretRefStatus{
Secret: *acceptor.Secret(),
Expand Down

0 comments on commit 92bfb46

Please sign in to comment.