Commit ac70dc89 authored by Cory Bryant's avatar Cory Bryant

ReadStream.end is not a valid method

parent 7c711b06
......@@ -82,16 +82,11 @@ module.exports=function s3BackedRenditions(config, $){
});
uploader.on("error", function(err){
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();
});
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