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]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
* Added claim_address option to publish API command
|
* Added claim_address option to publish API command
|
||||||
*
|
* Added message for InsufficientFundsError exception
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Do not catch base exception in API command resolve
|
* Do not catch base exception in API command resolve
|
||||||
|
|
|
@ -1757,7 +1757,8 @@ class Daemon(AuthJSONRPCServer):
|
||||||
raise Exception("Invalid bid")
|
raise Exception("Invalid bid")
|
||||||
|
|
||||||
if bid >= self.session.wallet.get_balance():
|
if bid >= self.session.wallet.get_balance():
|
||||||
raise InsufficientFundsError()
|
raise InsufficientFundsError('Insufficient funds. ' \
|
||||||
|
'Make sure you have enough LBC to deposit')
|
||||||
|
|
||||||
metadata = metadata or {}
|
metadata = metadata or {}
|
||||||
if fee is not None:
|
if fee is not None:
|
||||||
|
|
Loading…
Add table
Reference in a new issue