Add better 404 message for outfit image
This commit is contained in:
parent
27437c33de
commit
e608844171
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue