Don't show original error for generic fetch errors

This commit is contained in:
James Lyne 2021-05-18 18:37:26 +01:00
parent 2e951f5e58
commit 2c04dca4c7

View File

@ -665,7 +665,7 @@ async function fetchJSON(url: string) {
try {
response = await fetch(url);
} catch(e) {
throw new Error(`Network request failed (${e})`);
throw new Error(`Network request failed`);
}
if (!response.ok) {