Removed catch
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9d5d2e9177
commit
ade2d9f4a2
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue