mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
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:
parent
c5284469d3
commit
ed21af577c
1 changed files with 1 additions and 4 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue