Merge branch 'resize-image-error' into 'develop'

resizeImage: output error to console

See merge request soapbox-pub/soapbox-fe!869
This commit is contained in:
Alex Gleason 2021-11-15 19:15:11 +00:00
commit 15483d553a

View file

@ -189,6 +189,9 @@ export default (inputFile, maxPixels = DEFAULT_MAX_PIXELS) => new Promise((resol
resizeImage(img, inputFile, maxPixels) resizeImage(img, inputFile, maxPixels)
.then(resolve) .then(resolve)
.catch(() => resolve(inputFile)); .catch(error => {
console.error(error);
resolve(inputFile);
});
}).catch(() => resolve(inputFile)); }).catch(() => resolve(inputFile));
}); });