Removed catch
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-01-28 16:01:49 +01:00
parent 9d5d2e9177
commit ade2d9f4a2
1 changed files with 2 additions and 10 deletions

View File

@ -57,11 +57,7 @@ module.exports = Self => {
await sharp(srcFilePath, {failOnError: false})
.resize(collection.maxWidth, collection.maxHeight, resizeOpts)
.png()
.toFile(dstFile)
.catch(error => {
console.log('[ERROR] Image download failed: ' + error);
console.log('File => ' + srcFilePath);
});
.toFile(dstFile);
const sizes = collection.sizes();
for (let size of sizes) {
@ -76,11 +72,7 @@ module.exports = Self => {
await sharp(srcFilePath, {failOnError: false})
.resize(size.width, size.height, resizeOpts)
.png()
.toFile(dstFile)
.catch(error => {
console.log('[ERROR] Image download failed: ' + error);
console.log('File => ' + srcFilePath);
});
.toFile(dstFile);
}
const model = models[collection.model];