mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -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,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);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue