Sync search parameters for presets

This commit is contained in:
Misode
2021-11-21 03:19:11 +01:00
parent 56b1a711a2
commit 08e5b36a62
5 changed files with 81 additions and 18 deletions

View File

@@ -213,7 +213,7 @@ export async function fetchPreset(version: VersionId, registry: string, id: stri
}
return await res.json()
} catch (e) {
console.warn(`Error occurred while fetching ${registry} preset ${id}:`, message(e))
throw new Error(`Error occurred while fetching ${registry} preset ${id}: ${message(e)}`)
}
}