Skip to content

Commit

Permalink
correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lstoll committed Mar 29, 2024
1 parent c95b8e8 commit 0e14a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k8s_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (k *k8sStateStore) ReadState(id ipn.StateKey) ([]byte, error) {
if err != nil {
if !apierrors.IsNotFound(err) {
// unexpected
return nil, fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.name, err)
return nil, fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.secret, err)
}
return nil, ipn.ErrStateNotExist
}
Expand Down Expand Up @@ -74,7 +74,7 @@ func (k *k8sStateStore) WriteState(id ipn.StateKey, bs []byte) error {
if err != nil {
if !apierrors.IsNotFound(err) {
// unexpected
return fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.name, err)
return fmt.Errorf("fetching %s/%s from destination: %v", k.namespace, k.secret, err)
}
// item wasn't found, start with a new one
needsCreate = true
Expand Down

0 comments on commit 0e14a98

Please sign in to comment.