Merge pull request #676 from longle255/fix_insufficient_funds_message

add message for exception so that app can render
This commit is contained in:
Jack Robison 2017-06-08 19:22:34 -04:00 committed by GitHub
commit c9a8016ae7
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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: