Better error message if invalid theme

This commit is contained in:
Pieter Vander Vennet 2024-08-01 19:34:13 +02:00
parent 6031e00e99
commit f713d5b6d8
3 changed files with 13 additions and 15 deletions

View file

@ -41,7 +41,6 @@ async function getAvailableLayers(): Promise<Set<string>> {
}
async function main() {
// @ts-ignore
try {
if (!webgl_support()) {
throw "WebGL is not supported or not enabled. This is essential for MapComplete to function, please enable this."