forked from LBRYCommunity/lbry-sdk
Merge pull request #676 from longle255/fix_insufficient_funds_message
add message for exception so that app can render
This commit is contained in:
commit
c9a8016ae7
2 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@ at anytime.
|
|||
## [Unreleased]
|
||||
### Added
|
||||
* Added claim_address option to publish API command
|
||||
*
|
||||
* Added message for InsufficientFundsError exception
|
||||
|
||||
### Changed
|
||||
* Do not catch base exception in API command resolve
|
||||
|
|
|
@ -1757,7 +1757,8 @@ class Daemon(AuthJSONRPCServer):
|
|||
raise Exception("Invalid bid")
|
||||
|
||||
if bid >= self.session.wallet.get_balance():
|
||||
raise InsufficientFundsError()
|
||||
raise InsufficientFundsError('Insufficient funds. ' \
|
||||
'Make sure you have enough LBC to deposit')
|
||||
|
||||
metadata = metadata or {}
|
||||
if fee is not None:
|
||||
|
|
Loading…
Reference in a new issue