improved audio library error handling
This commit is contained in:
parent
4fe90f47a0
commit
c8d7de7ddd
1 changed files with 6 additions and 1 deletions
|
@ -87,6 +87,11 @@ loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
|
||||||
priority: 10,
|
priority: 10,
|
||||||
function: async () => {
|
function: async () => {
|
||||||
audioLibrary = new AudioLibrary();
|
audioLibrary = new AudioLibrary();
|
||||||
await audioLibrary.initialize();
|
try {
|
||||||
|
await audioLibrary.initialize();
|
||||||
|
} catch (error) {
|
||||||
|
loader.critical_error("Audio library initialisation failed", "Lookup the console for more details");
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Add table
Reference in a new issue