Sha256: 56610311a908b9ee4c25ca8792633578b2a4b93c906ec10a713e0d92c8dba977
Contents?: true
Size: 435 Bytes
Versions: 19
Compression:
Stored size: 435 Bytes
Contents
require 'faraday' require 'octokit/error' module Octokit # Faraday response middleware module Response # This class raises an Octokit-flavored exception based # HTTP status codes returned by the API class RaiseError < Faraday::Response::Middleware private def on_complete(response) if error = Octokit::Error.from_response(response) raise error end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems