You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: multipart_file_uploader.rb
    path of file: ./repos/aws-sdk-ruby/gems/aws-sdk-s3/lib/aws-sdk-s3
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'pathname'
require 'set'

module Aws
  module S3
   
    
      def abort_upload(upload_id, options, errors)
        @client.abort_multipart_upload(
          bucket: options[:bucket],
          key: options[:key],
          upload_id: upload_id
        )
        msg = "multipart upload failed: #{errors.map(&:message).join("; ")}"
        raise MultipartUploadError.new(msg, errors)
      rescue MultipartUploadError => error
        raise error
      rescue => error
        msg = "failed to abort multipart upload: #{error.message}"
        raise MultipartUploadError.new(msg, errors + [error])
      end