Skip to content

Commit

Permalink
perf(install): add error handler for Forge manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
skjsjhb committed Mar 2, 2025
1 parent 52c7538 commit c6ba514
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/install/forge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ let versions: string[] | null = null;
async function syncVersions(): Promise<string[]> {
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);
Expand Down

0 comments on commit c6ba514

Please sign in to comment.