Commit 7c711b06 authored by Cory Bryant's avatar Cory Bryant

Re-enable stream ends

parent 0e2645e0
......@@ -82,14 +82,14 @@ module.exports=function s3BackedRenditions(config, $){
});
uploader.on("error", function(err){
// localFile.end();
localFile.end();
var msg = `Error uploading rendition to S3 bucket ${s3conf.bucket}. Please check config at: ${confPath}`;
log.error(msg, err);
emailErrorOccasionally(params.emailError, msg);
});
uploader.on("success", function(err){
// localFile.end();
localFile.end();
});
uploader.send();
......
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