Add better 404 message for outfit image

This commit is contained in:
Emi Matchu 2021-05-27 17:01:20 -07:00
parent 27437c33de
commit e608844171

View file

@ -175,6 +175,10 @@ async function loadLayerUrlsForSavedOutfit(outfitId, size) {
);
}
if (!data.outfit) {
throw new Error(`outfit ${outfitId} not found`);
}
const { petAppearance, itemAppearances } = data.outfit;
const visibleLayers = getVisibleLayers(petAppearance, itemAppearances);
return visibleLayers