lib/s3-upload-stream.js
function (rootError) {
    cachedClient.abortMultipartUpload(
      {
        Bucket: destinationDetails.Bucket,
        Key: destinationDetails.Key,
        UploadId: multipartUploadID
      },
      function (abortError) {
        if (abortError)
          ws.emit('error', rootError + '\n Additionally failed to abort the multipart upload on S3: ' + abortError);
        else
          ws.emit('error', rootError);
      }
    );
  }
function (rootError) {
    cachedClient.abortMultipartUpload(
      {
        Bucket: destinationDetails.Bucket,
        Key: destinationDetails.Key,
        UploadId: multipartUploadID
      },
      function (abortError) {
        if (abortError)
          ws.emit('error', rootError + '\n Additionally failed to abort the multipart upload on S3: ' + abortError);
        else
          ws.emit('error', rootError);
      }
    );
  }
function ( rootError ) { cachedClient . abortMultipartUpload ( { Bucket : destinationDetails . Bucket , Key : destinationDetails . Key , UploadId : multipartUploadID } , function ( abortError ) { if ( abortError ) ws . emit ( 'error' , rootError + '\n Additionally failed to abort the multipart upload on S3: ' + abortError ) ; else ws . emit ( 'error' , rootError ) ; } ) ; }
When a fatal error occurs abort the multipart upload
When a fatal error occurs abort the multipart upload