From ed21af577c23cc3a922806bd43db9003cc19bad9 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Wed, 26 Dec 2018 14:15:57 -0500 Subject: [PATCH] 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). --- src/import/load-costume.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/import/load-costume.js b/src/import/load-costume.js index f04ff8498..e2ce43345 100644 --- a/src/import/load-costume.js +++ b/src/import/load-costume.js @@ -285,10 +285,7 @@ const loadCostume = function (md5ext, costume, runtime, optVersion) { costume.textLayerAsset = assetArray[1]; } return loadCostumeFromAsset(costume, runtime, optVersion); - }) - .catch(e => { - log.error(e); - }); + }); }; module.exports = {