Update src/import/load-costume.js

Thanks!

Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
This commit is contained in:
DD Liu 2019-09-16 13:59:45 -04:00 committed by GitHub
parent 82e0f71643
commit cbb668a7ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ const loadCostumeFromAsset = function (costume, runtime, optVersion) {
if (costume.asset.assetType.runtimeFormat === AssetType.ImageVector.runtimeFormat) {
return loadVector_(costume, runtime, rotationCenter, optVersion)
.catch(error => {
log.warn(`${error.name}: ${error.message}`);
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);