resizeImage: output error to console

This commit is contained in:
Alex Gleason
2021-11-15 13:13:36 -06:00
parent bb1275e51a
commit 9a42ebb41f

View File

@ -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));
});