Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <[email protected]>
  • Loading branch information
haydentherapper committed Jan 16, 2025
1 parent febda37 commit b32ab71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/rekor-cli/app/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var getCmd = &cobra.Command{
}
verifier, err := loadVerifier(rekorClient, strconv.FormatInt(treeID, 10))
if err != nil {
return nil, fmt.Errorf("retrieving rekor public key")
return nil, fmt.Errorf("retrieving rekor public key: %v", err)
}
// verify log entry
e = entry
Expand Down Expand Up @@ -154,7 +154,7 @@ var getCmd = &cobra.Command{
}
verifier, err := loadVerifier(rekorClient, strconv.FormatInt(treeID, 10))
if err != nil {
return nil, fmt.Errorf("retrieving rekor public key")
return nil, fmt.Errorf("retrieving rekor public key: %v", err)
}

if err := compareEntryUUIDs(params.EntryUUID, k); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/entries.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func logEntryFromLeaf(ctx context.Context, _ trillianclient.TrillianClient, leaf
}

logEntryAnon := models.LogEntryAnon{
LogID: swag.String(logRange.PemPubKey),
LogID: swag.String(logRange.LogID),
LogIndex: &virtualIndex,
Body: leaf.LeafValue,
IntegratedTime: swag.Int64(leaf.IntegrateTimestamp.AsTime().Unix()),
Expand Down

0 comments on commit b32ab71

Please sign in to comment.