Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <[email protected]>
  • Loading branch information
haydentherapper committed Jan 21, 2025
1 parent 0ff5059 commit af60c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func NewAPI(treeID uint) (*API, error) {
tc := trillianclient.NewTrillianClient(ctx, logClient, r.TreeID)
resp := tc.GetLatest(0)
if resp.Status != codes.OK {
return nil, fmt.Errorf("error with GetLatest(): resp code is %d", resp.Status)
return nil, fmt.Errorf("error fetching latest tree head for inactive shard %d: resp code is %d, err is %w", r.TreeID, resp.Status, resp.Err)
}
result := resp.GetLatestResult
root := &types.LogRootV1{}
Expand Down

0 comments on commit af60c05

Please sign in to comment.