Don't show original error for generic fetch errors
This commit is contained in:
parent
2e951f5e58
commit
2c04dca4c7
@ -665,7 +665,7 @@ async function fetchJSON(url: string) {
|
|||||||
try {
|
try {
|
||||||
response = await fetch(url);
|
response = await fetch(url);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
throw new Error(`Network request failed (${e})`);
|
throw new Error(`Network request failed`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
Loading…
Reference in New Issue
Block a user