deals: Better errors for used lanes

This commit is contained in:
Łukasz Magiera 2019-09-25 13:55:15 +02:00
parent caa767e081
commit 72bb5c6919

View File

@ -125,11 +125,11 @@ func (h *Handler) validateVouchers(ctx context.Context, deal MinerDeal, paych ad
}
if laneState.Redeemed.GreaterThan(types.NewInt(0)) {
return xerrors.New("used lanes unsupported")
return xerrors.New("used lanes unsupported: lane redeemed amount was non-zero")
}
if laneState.Nonce > 0 {
return xerrors.New("used lanes unsupported")
return xerrors.New("used lanes unsupported: nonce higher than zero")
}
return nil