forward errors outside of uris on channel listing

This commit is contained in:
Victor Shyba 2018-12-10 20:10:45 -03:00 committed by Lex Berezhny
parent 4e3467bb7e
commit ba59e126cd

View file

@ -2633,6 +2633,8 @@ class Daemon(AuthJSONRPCServer):
results[chan_uri] = {"error": "%s is not a valid uri" % chan_uri} results[chan_uri] = {"error": "%s is not a valid uri" % chan_uri}
resolved = await self.wallet_manager.resolve(*valid_uris, page=page, page_size=page_size) resolved = await self.wallet_manager.resolve(*valid_uris, page=page, page_size=page_size)
if 'error' in resolved:
return {'error': resolved['error']}
for u in resolved: for u in resolved:
if 'error' in resolved[u]: if 'error' in resolved[u]:
results[u] = resolved[u] results[u] = resolved[u]