From 3fe2c478f2dd4db12b5b92ecc7b653acf7ddc8eb Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 22 Sep 2020 04:12:52 -0700 Subject: [PATCH] log manifest image load errors, instead of crash --- src/app/components/OutfitCanvas.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/OutfitCanvas.js b/src/app/components/OutfitCanvas.js index 5500d9e..14fd022 100644 --- a/src/app/components/OutfitCanvas.js +++ b/src/app/components/OutfitCanvas.js @@ -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());