Catch errors in load costume
This commit is contained in:
1 parent
3978282435
commit
ce070fe0fb
1 file changed
+4
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user