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:
commit
15483d553a
1 changed files with 4 additions and 1 deletions
|
@ -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));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue