log manifest image load errors, instead of crash
This commit is contained in:
parent
8cc034900d
commit
3fe2c478f2
1 changed files with 3 additions and 1 deletions
|
@ -384,7 +384,9 @@ async function loadMovieLibrary(librarySrc) {
|
|||
const manifestImages = new Map(
|
||||
library.properties.manifest.map(({ id, src }) => [
|
||||
id,
|
||||
loadImage(safeImageUrl(librarySrcDir + "/" + src)),
|
||||
loadImage(safeImageUrl(librarySrcDir + "/" + src)).catch((e) => {
|
||||
console.error("Error loading image for movie manifest", e);
|
||||
}),
|
||||
])
|
||||
);
|
||||
await Promise.all(manifestImages.values());
|
||||
|
|
Loading…
Reference in a new issue