From 9a42ebb41fc29ea565a373d6cc39191fd9975e3f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 15 Nov 2021 13:13:36 -0600 Subject: [PATCH] resizeImage: output error to console --- app/soapbox/utils/resize_image.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/soapbox/utils/resize_image.js b/app/soapbox/utils/resize_image.js index d801cc200..939653b6b 100644 --- a/app/soapbox/utils/resize_image.js +++ b/app/soapbox/utils/resize_image.js @@ -189,6 +189,9 @@ export default (inputFile, maxPixels = DEFAULT_MAX_PIXELS) => new Promise((resol resizeImage(img, inputFile, maxPixels) .then(resolve) - .catch(() => resolve(inputFile)); + .catch(error => { + console.error(error); + resolve(inputFile); + }); }).catch(() => resolve(inputFile)); });