Commit 0d9cc0c7 authored by Cory Bryant's avatar Cory Bryant

Remove file if hashes don't match

parent d557a671
......@@ -72,6 +72,7 @@ module.exports=function s3BackedRenditions(config, $){
cb(null, lastModifiedTime);
});
} else {
fs.unlinkSync(params.renditionPathOnDisk);
msg = `Error downloading rendition from s3 Bucket: ${s3conf.bucket} Path: ${params.renditionPath}, hashes don't match`;
log.error(msg);
cb(msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment