Skip to content

Commit

Permalink
chore: add logs for market and governance error
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Letang <[email protected]>
  • Loading branch information
jeremyletang committed Apr 25, 2024
1 parent 692d7ce commit c047f51
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/types/snapshot_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,10 @@ func (g GovernanceNode) IntoProto() *snapshot.GovernanceNode {
}

func ProposalDataFromProto(pp *snapshot.ProposalData) *ProposalData {
p, _ := ProposalFromProto(pp.Proposal)
p, err := ProposalFromProto(pp.Proposal)
if err != nil {
fmt.Printf("DANIEL ERROR: %v\n", err)

Check failure on line 2326 in core/types/snapshot_nodes.go

View workflow job for this annotation

GitHub Actions / lint

use of `fmt.Printf` forbidden by pattern `fmt\.Print.*` (forbidigo)
}
ret := ProposalData{
Proposal: p,
Yes: make([]*Vote, 0, len(pp.Yes)),
Expand Down Expand Up @@ -3002,7 +3005,10 @@ func ExecMarketFromProto(em *snapshot.Market) *ExecMarket {
}
}

m, _ := MarketFromProto(em.Market)
m, err := MarketFromProto(em.Market)
if err != nil {
fmt.Printf("DANIEL ERROR: %v\n", err)

Check failure on line 3010 in core/types/snapshot_nodes.go

View workflow job for this annotation

GitHub Actions / lint

use of `fmt.Printf` forbidden by pattern `fmt\.Print.*` (forbidigo)
}
ret := ExecMarket{
Market: m,
PriceMonitor: PriceMonitorFromProto(em.PriceMonitor),
Expand Down

0 comments on commit c047f51

Please sign in to comment.