Skip to content

Commit f7bd164

Browse files
fix: fix error logs (#356)
1 parent a9f100c commit f7bd164

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

verifiers/internal/gha/rekor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ func verifyTlogEntry(ctx context.Context, rekorClient *client.Rekor, e models.Lo
8383

8484
verifier, err := signature.LoadECDSAVerifier(pubs[*e.LogID].PubKey, crypto.SHA256)
8585
if err != nil {
86-
return nil, fmt.Errorf("%w: %s", err, "unable to fetch Rekor public keys from TUF repository")
86+
return nil, fmt.Errorf("%w: %s", err, "unable to load a ECDSA verifier")
8787
}
8888

8989
// This function verifies the inclusion proof, the signature on the root hash of the
9090
// inclusion proof, and the SignedEntryTimestamp.
9191
if err := rverify.VerifyLogEntry(ctx, &e, verifier); err != nil {
92-
return nil, fmt.Errorf("%w: %s", err, "unable to fetch Rekor public keys from TUF repository")
92+
return nil, fmt.Errorf("%w: %s", err, "unable to verify a log entry")
9393
}
9494

9595
return &e, nil

0 commit comments

Comments
 (0)