Let errors from loadCostume bubble up so that we do not attempt to call installTargets on an invalid target (e.g. one that has no costumes).

This commit is contained in:
Karishma Chadha 2018-12-26 14:15:57 -05:00
parent c5284469d3
commit ed21af577c

View file

@ -285,9 +285,6 @@ const loadCostume = function (md5ext, costume, runtime, optVersion) {
costume.textLayerAsset = assetArray[1]; costume.textLayerAsset = assetArray[1];
} }
return loadCostumeFromAsset(costume, runtime, optVersion); return loadCostumeFromAsset(costume, runtime, optVersion);
})
.catch(e => {
log.error(e);
}); });
}; };