kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'resize-image-error' into 'develop'
resizeImage: output error to console See merge request soapbox-pub/soapbox-fe!869features-override
commit
15483d553a
|
@ -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));
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue