Skip to content

Commit

Permalink
more error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Feb 20, 2025
1 parent 9778df9 commit 2df0fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions market/mk12/cidgravity.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (m *MK12) prepareCidGravityPayload(ctx context.Context, deal *ProviderDealS
// Fund details
mbal, err := m.api.StateMarketBalance(ctx, deal.ClientDealProposal.Proposal.Provider, types.EmptyTSK)
if err != nil {
return nil, err
return nil, xerrors.Errorf("getting provider market balance: %w", err)
}

data.FundsState.Escrow.Tagged = big.NewInt(0)
Expand Down Expand Up @@ -283,7 +283,7 @@ func (m *MK12) prepareCidGravityPayload(ctx context.Context, deal *ProviderDealS

err = m.db.Select(ctx, &stats, `SELECT SUM(available) as available, SUM(capacity) as capacity FROM storage_path WHERE can_seal = true`)
if err != nil {
return nil, err
return nil, xerrors.Errorf("failed to run storage query: %w", err)
}

if len(stats) == 0 {
Expand Down

0 comments on commit 2df0fae

Please sign in to comment.