Skip to content

Commit

Permalink
fix: missing error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Dec 16, 2024
1 parent b1a41c6 commit e00aef0
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions position/errors.gno
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ import (
)

var (
errNoPermission = errors.New("[GNOSWAP-POSITION-001] caller has no permission")
errSlippage = errors.New("[GNOSWAP-POSITION-002] slippage failed")
errWrapUnwrap = errors.New("[GNOSWAP-POSITION-003] wrap, unwrap failed")
errOutOfRange = errors.New("[GNOSWAP-POSITION-004] out of range for numeric value")
errInvalidInput = errors.New("[GNOSWAP-POSITION-005] invalid input data")
errDataNotFound = errors.New("[GNOSWAP-POSITION-006] requested data not found")
errExpired = errors.New("[GNOSWAP-POSITION-007] transaction expired")
errWugnotMinimum = errors.New("[GNOSWAP-POSITION-008] can not wrap less than minimum amount")
errNotClear = errors.New("[GNOSWAP-POSITION-009] position is not clear")
errZeroLiquidity = errors.New("[GNOSWAP-POSITION-010] zero liquidity")
errPositionExist = errors.New("[GNOSWAP-POSITION-011] position with same tokenId already exists")
errNoPermission = errors.New("[GNOSWAP-POSITION-001] caller has no permission")
errSlippage = errors.New("[GNOSWAP-POSITION-002] slippage failed")
errWrapUnwrap = errors.New("[GNOSWAP-POSITION-003] wrap, unwrap failed")
errOutOfRange = errors.New("[GNOSWAP-POSITION-004] out of range for numeric value")
errInvalidInput = errors.New("[GNOSWAP-POSITION-005] invalid input data")
errDataNotFound = errors.New("[GNOSWAP-POSITION-006] requested data not found")
errExpired = errors.New("[GNOSWAP-POSITION-007] transaction expired")
errWugnotMinimum = errors.New("[GNOSWAP-POSITION-008] can not wrap less than minimum amount")
errNotClear = errors.New("[GNOSWAP-POSITION-009] position is not clear")
errZeroLiquidity = errors.New("[GNOSWAP-POSITION-010] zero liquidity")
errPositionExist = errors.New("[GNOSWAP-POSITION-011] position with same tokenId already exists")
errInvalidAddress = errors.New("[GNOSWAP-POSITION-012] invalid address")
)

func addDetailToError(err error, detail string) string {
Expand Down

0 comments on commit e00aef0

Please sign in to comment.