Skip to content

Commit

Permalink
Update client/log_client.go
Browse files Browse the repository at this point in the history
Co-Authored-By: therealdrake <alexdrake@google.com>
  • Loading branch information
gdbelvin and therealdrake authored Apr 29, 2019
1 parent d023c89 commit 735f1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/log_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func (c *LogClient) AddSequencedLeaves(ctx context.Context, dataByIndex map[int6
Leaves: leaves,
})
for _, leaf := range resp.GetResults() {
if stat := leaf.GetStatus().GetCode(); stat != int32(codes.OK) && stat != int32(codes.AlreadyExists) {
if s := status.FromProto(leaf.GetStatus()); s.Code() != codes.OK && s.Code() != codes.AlreadyExists {
return status.Errorf(s.Code(), "unexpected fail status in AddSequencedLeaves: %+v, err: %v", leaf, s.Message())
}
}
Expand Down

0 comments on commit 735f1dd

Please sign in to comment.