mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Merge pull request #2266 from fsih/warnMsg
Give some indication of why asset load failed
This commit is contained in:
commit
0ad611a200
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ const fetchBitmapCanvas_ = function (costume, runtime, rotationCenter) {
|
|||
assetMatchesBase: scale === 1 && !textImageElement
|
||||
};
|
||||
})
|
||||
.catch(() => {
|
||||
.catch(error => {
|
||||
log.warn(`${error.name}: ${error.message}`);
|
||||
// Clean up the text layer properties if it fails to load
|
||||
delete costume.textLayerMD5;
|
||||
delete costume.textLayerAsset;
|
||||
|
|
Loading…
Reference in a new issue