lib/github_api/error/unknown_media.rb
# encoding: utf-8 module Github #:nodoc # Raised when invalid options are passed to a request body module Error class UnknownMedia < ClientError def initialize(file) super( generate_message( :problem => "Unknown content type for: '#{file}' provided for this request.", :summary => "Github gem infers the content type of the resource by calling the mime-types gem type inference.", :resolution => "Please install mime-types gem to infer the resource content type." ) ) end end end # Error end # Github