mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Give some indication of why asset load failed
This commit is contained in:
parent
7e1582c034
commit
89db44bc6a
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(e.name, ': ',e.message);
|
||||
// Clean up the text layer properties if it fails to load
|
||||
delete costume.textLayerMD5;
|
||||
delete costume.textLayerAsset;
|
||||
|
|
Loading…
Reference in a new issue