Skip to content

Commit

Permalink
add context for error
Browse files Browse the repository at this point in the history
  • Loading branch information
illia-malachyn committed Oct 22, 2024
1 parent 7435d56 commit 1221b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion access/grpc/convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func TimeoutCertificateToMessage(tc flow.TimeoutCertificate) (*entities.TimeoutC

func MessageToQuorumCertificate(m *entities.QuorumCertificate) (flow.QuorumCertificate, error) {
if m == nil {
return flow.QuorumCertificate{}, ErrEmptyMessage
return flow.QuorumCertificate{}, fmt.Errorf("quourum certificate is empty: %w", ErrEmptyMessage)
}

return flow.QuorumCertificate{
Expand Down

0 comments on commit 1221b62

Please sign in to comment.