kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
resizeImage: output error to console
rodzic
bb1275e51a
commit
9a42ebb41f
|
@ -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));
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue