Merge pull request #2266 from fsih/warnMsg

Give some indication of why asset load failed
This commit is contained in:
DD Liu 2019-09-04 11:38:16 -04:00 committed by GitHub
commit 0ad611a200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(`${error.name}: ${error.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;