Merge pull request #2278 from fsih/warnMsg
Move error log to right place
This commit is contained in:
1 file changed
+3
-3
@@ -171,8 +171,7 @@ const fetchBitmapCanvas_ = function (costume, runtime, rotationCenter) {
|
||||
assetMatchesBase: scale === 1 && !textImageElement
|
||||
};
|
||||
})
|
||||
.catch(error => {
|
||||
log.warn(`${error.name}: ${error.message}`);
|
||||
.catch(() => {
|
||||
// Clean up the text layer properties if it fails to load
|
||||
delete costume.textLayerMD5;
|
||||
delete costume.textLayerAsset;
|
||||
@@ -261,7 +260,8 @@ const loadCostumeFromAsset = function (costume, runtime, optVersion) {
|
||||
}
|
||||
if (costume.asset.assetType.runtimeFormat === AssetType.ImageVector.runtimeFormat) {
|
||||
return loadVector_(costume, runtime, rotationCenter, optVersion)
|
||||
.catch(() => {
|
||||
.catch(error => {
|
||||
log.warn(`Error loading vector image: ${error.name}: ${error.message}`);
|
||||
// Use default asset if original fails to load
|
||||
costume.assetId = runtime.storage.defaultAssetId.ImageVector;
|
||||
costume.asset = runtime.storage.get(costume.assetId);
|
||||
|
||||
Reference in new issue
Block a user