Improve error message upon failing to resolve a claim

This commit is contained in:
Zestyr 2017-06-22 01:50:14 +02:00 committed by Alex Grintsvayg
parent f06366b7dd
commit 8735e1bb53
2 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,7 @@ at anytime.
* Renamed `lbrynet.lbrynet_daemon` to `lbrynet.daemon` * Renamed `lbrynet.lbrynet_daemon` to `lbrynet.daemon`
* Initialize lbrynet settings when configuring an api client if they are not set yet * Initialize lbrynet settings when configuring an api client if they are not set yet
* Updated lbryum imports * Updated lbryum imports
* Improve error message when resolving a claim fails using the "get" command
* *
### Fixed ### Fixed

View file

@ -1501,7 +1501,7 @@ class Daemon(AuthJSONRPCServer):
if not resolved or 'value' not in resolved: if not resolved or 'value' not in resolved:
if 'claim' not in resolved: if 'claim' not in resolved:
raise Exception("Nothing to download") raise Exception("Failed to resolve stream at lbry://{}".format(uri.replace("lbry://", "")))
else: else:
resolved = resolved['claim'] resolved = resolved['claim']