diff --git a/src/lib/file-uploader.js b/src/lib/file-uploader.js index a0690f2b0bcb63831fffd58675b1949c67298418..53d0ab8f651442ebfe4e2d27e5484fe52fdeabbd 100644 --- a/src/lib/file-uploader.js +++ b/src/lib/file-uploader.js @@ -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); + }); } };