Skip to content

Commit

Permalink
fixup! Separate timeout errors by type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim committed Apr 21, 2024
1 parent 87e91d9 commit 9bfda52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/error.rb
Expand Up @@ -51,7 +51,7 @@ class InvalidHeaderValue < Error; end
class ResponseParse < Error; end

class Timeout < Error
def self.by_type(type, human_name)
def self.by_type(type, human_name = type)
case type
when :connect_read
Excon::Errors::ConnectReadTimeout.described_as(human_name)
Expand Down

0 comments on commit 9bfda52

Please sign in to comment.