Skip to content

Commit

Permalink
Log error when we can't initialize a read-only TUF metadata client (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany authored Sep 10, 2024
1 parent ad26731 commit 481340e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ee/tuf/library_lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package tuf

import (
"context"
"errors"
"fmt"
"log/slog"
"os"
Expand Down Expand Up @@ -243,7 +242,7 @@ func findExecutable(ctx context.Context, binary autoupdatableBinary, tufReposito
// Initialize a read-only TUF metadata client to parse the data we already have downloaded about releases.
metadataClient, err := readOnlyTufMetadataClient(tufRepositoryLocation)
if err != nil {
return nil, errors.New("could not initialize TUF client, cannot find release")
return nil, fmt.Errorf("could not initialize TUF client, cannot find release: %w", err)
}

// From already-downloaded metadata, look for the release version
Expand Down

0 comments on commit 481340e

Please sign in to comment.