Give some indication of why asset load failed

This commit is contained in:
DD Liu 2019-08-23 17:28:13 -04:00
parent 7e1582c034
commit 89db44bc6a

View file

@ -171,7 +171,8 @@ const fetchBitmapCanvas_ = function (costume, runtime, rotationCenter) {
assetMatchesBase: scale === 1 && !textImageElement assetMatchesBase: scale === 1 && !textImageElement
}; };
}) })
.catch(() => { .catch(error => {
log.warn(e.name, ': ',e.message);
// Clean up the text layer properties if it fails to load // Clean up the text layer properties if it fails to load
delete costume.textLayerMD5; delete costume.textLayerMD5;
delete costume.textLayerAsset; delete costume.textLayerAsset;