Merge branch 'zestyr-improve_get_error'

* zestyr-improve_get_error:
  Improve error message upon failing to resolve a claim
This commit is contained in:
Alex Grintsvayg 2017-06-30 09:14:22 -04:00
commit 4e4eeae79c
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -1501,7 +1501,7 @@ class Daemon(AuthJSONRPCServer):
if not resolved or 'value' 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:
resolved = resolved['claim']