Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-malachyn committed Oct 22, 2024
1 parent 089b538 commit 7435d56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion access/grpc/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ func MessageToBlockHeader(m *entities.BlockHeader) (flow.BlockHeader, error) {
timestamp = m.GetTimestamp().AsTime()
}

timeoutCertificate, _ := MessageToTimeoutCertificate(m.GetLastViewTc())
timeoutCertificate, err := MessageToTimeoutCertificate(m.GetLastViewTc())
if err != nil {
return flow.BlockHeader{}, fmt.Errorf("error converting timeout certificate: %w", err)
}

return flow.BlockHeader{
ID: flow.HashToID(m.GetId()),
Expand Down

0 comments on commit 7435d56

Please sign in to comment.