This commit is contained in:
Mitra Ardron 2019-05-31 16:18:58 +10:00
parent 82890eab97
commit 5892e00faf

View File

@ -86,7 +86,7 @@ httptools.p_httpfetch = async function(httpurl, init, {wantstream=false, retries
}
}
// noinspection ExceptionCaughtLocallyJS
throw new errors.TransportError(`Transport Error ${response.status}: ${response.statusText}`);
throw new errors.TransportError(`Transport Error ${httpurl} ${response.status}: ${response.statusText}`);
} catch (err) {
// Error here is particularly unhelpful - if rejected during the COrs process it throws a TypeError
debug("p_httpfetch failed: %s", err.message); // note TypeErrors are generated by CORS or the Chrome anti DDOS 'feature' should catch them here and comment