Skip to content

Commit f38d8d6

Browse files
committed
fix ignoreImageTransformErrors
fix #113
1 parent aa106e6 commit f38d8d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/content/lib/utils/media-downloader.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ export class MediaDownloader {
357357
await image.toFile(outputPath);
358358
}
359359
} catch (err) {
360-
// if (!ignoreErrors) {
361-
this.logger.error(`Couldn't transform image ${tempFilePath}`);
362-
this.logger.error(err);
363-
throw err;
364-
// }
360+
if (!ignoreErrors) {
361+
this.logger.error(`Couldn't transform image ${tempFilePath}`);
362+
this.logger.error(err);
363+
throw err;
364+
}
365365
}
366366
}
367367
}

0 commit comments

Comments
 (0)