Catch errors in load costume

This commit is contained in:
DD Liu committed 2018-07-12 17:17:50 -04:00
1 parent 3978282435
commit ce070fe0fb
1 file changed
+4 -1
+4 -1
View File
@@ -132,7 +132,10 @@ const costumeUpload = function (fileData, fileType, costumeName, storage, handle
addCostumeFromBuffer(new Uint8Array(fileData));
} else {
// otherwise it's a bitmap
bitmapAdapter.importBitmap(fileData, fileType).then(addCostumeFromBuffer);
bitmapAdapter.importBitmap(fileData, fileType).then(addCostumeFromBuffer)
.catch(e => {
log.error(e);
});
}
};