A More Informative Error Message (#1309)

Additional information added to the balance error message when editing a claim.
This commit is contained in:
Electron - Mark Firth 2018-07-21 05:41:24 +10:00 committed by Lex Berezhny
parent 2ddd6b051d
commit 94f4e6714a
2 changed files with 10 additions and 2 deletions

View file

@ -8,6 +8,12 @@ can and probably will change functionality and break backwards compatability
at anytime.
## [Unreleased]
## [0.20.3] - 2018-07-20
### Changed
* Additional information added to the balance error message when editing a claim.
(https://github.com/lbryio/lbry/pull/1309)
### Security
*
*

View file

@ -1873,8 +1873,10 @@ class Daemon(AuthJSONRPCServer):
. format(MAX_UPDATE_FEE_ESTIMATE - balance))
elif amount > max_bid_amount:
raise InsufficientFundsError(
"Please lower the bid value, the maximum amount you can specify for this channel is {}"
.format(max_bid_amount))
"Please wait for any pending bids to resolve or lower the bid value. "
"Currently the maximum amount you can specify for this channel is {}"
.format(max_bid_amount)
)
result = yield self.session.wallet.claim_new_channel(channel_name, amount)
self.analytics_manager.send_new_channel()