fix api.lbry.io errors getting swallowed

This commit is contained in:
Jeremy Kauffman 2017-11-09 16:59:41 -05:00
parent 3b1f63d98f
commit 6300370046

View file

@ -61,7 +61,7 @@ lbryio.call = function(resource, action, params = {}, method = "get") {
function makeRequest(url, options) {
return fetch(url, options).then(checkStatus).then(parseJSON).catch(e => {
throw new Error(__("Something went wrong making an internal API call."));
throw new e();
});
}