Skip to content

Commit

Permalink
Erroring out of _completeUploads if we get an empty response from S3.
Browse files Browse the repository at this point in the history
  • Loading branch information
philleski committed Apr 14, 2014
1 parent 91006ee commit 1cc3ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/multipartupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ MultiPartUpload.prototype._completeUploads = function(callback) {
// Register the response handler
parse.xmlResponse(req, function(err, body) {
if (err) return callback(err);
if (body === null) return callback('got empty response');
delete body.$;
body.size = size;
mpu.emit('completed', body);
Expand Down

0 comments on commit 1cc3ae3

Please sign in to comment.