web: Display config parse errors
This commit is contained in:
parent
b2c79f9ea2
commit
f97827ef9c
|
@ -708,7 +708,12 @@ export class RufflePlayer extends HTMLElement {
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`Serious error occurred loading SWF file: ${e}`);
|
console.error(`Serious error occurred loading SWF file: ${e}`);
|
||||||
throw e;
|
const err = new Error(e as string);
|
||||||
|
if (err.message.includes("Error parsing config")) {
|
||||||
|
err.ruffleIndexError = PanicError.JavascriptConfiguration;
|
||||||
|
}
|
||||||
|
this.panic(err);
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue