diff --git a/api/impl/venus_market.go b/api/impl/venus_market.go index 55aa0064..089f52b7 100644 --- a/api/impl/venus_market.go +++ b/api/impl/venus_market.go @@ -1076,7 +1076,7 @@ func (m *MarketNodeImpl) AssignUnPackedDeals(ctx context.Context, sid abi.Sector head, err := m.FullNode.ChainHead(ctx) if err != nil { - log.Errorf("get chain head %w", err) + return nil, fmt.Errorf("get chain head %w", err) } return m.DealAssigner.AssignUnPackedDeals(ctx, sid, ssize, head.Height(), spec) }