Skip to content

Commit

Permalink
Document endpoints error codes in the API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Ospald committed Oct 19, 2020
1 parent 53d3128 commit d2aee15
Show file tree
Hide file tree
Showing 3 changed files with 514 additions and 50 deletions.
1 change: 0 additions & 1 deletion lib/core/src/Cardano/Wallet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,6 @@ data ErrStartTimeLaterThanEndTime = ErrStartTimeLaterThanEndTime
data ErrSelectForDelegation
= ErrSelectForDelegationNoSuchWallet ErrNoSuchWallet
| ErrSelectForDelegationFee ErrAdjustForFee
| ErrSelectForDelegationUnableToAssignInputs ErrNoSuchWallet
deriving (Show, Eq)

-- | Errors that can occur when signing a delegation certificate.
Expand Down
1 change: 0 additions & 1 deletion lib/core/src/Cardano/Wallet/Api/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,6 @@ instance LiftHandler ErrSelectForDelegation where
[ "I'm unable to select enough coins to pay for a "
, "delegation certificate. I need: ", showT cost, " Lovelace."
]
ErrSelectForDelegationUnableToAssignInputs e -> handler e

instance LiftHandler ErrSignDelegation where
handler = \case
Expand Down
Loading

0 comments on commit d2aee15

Please sign in to comment.