diff --git a/src/main/install/forge.ts b/src/main/install/forge.ts index 9b44d5a0..931f142e 100644 --- a/src/main/install/forge.ts +++ b/src/main/install/forge.ts @@ -12,6 +12,9 @@ let versions: string[] | null = null; async function syncVersions(): Promise { if (!versions) { const res = await netx.get(FORGE_VERSIONS); + + if (!res.ok) throw exceptions.create("network", { url: res.url }); + const xml = await res.text(); const parser = new XMLParser(); const doc = parser.parse(xml);