switched show and channel components back to inernal state

This commit is contained in:
bill bittner 2018-02-02 12:46:18 -08:00
parent 1cbe9edf21
commit 7600ff5c54
14 changed files with 147 additions and 219 deletions
helpers

View file

@ -10,13 +10,13 @@ function handleLbrynetResponse ({ data }, resolve, reject) {
// check for an error
if (data.result.error) {
logger.debug('Lbrynet api error:', data.result.error);
reject(data.result.error);
reject(new Error(data.result.error));
return;
};
resolve(data.result);
return;
}
// fallback in case the just timed out
// fallback in case it just timed out
reject(JSON.stringify(data));
}