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 892c3e4 commit 87e91d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/excon/error.rb
Expand Up @@ -64,8 +64,8 @@ def self.by_type(type, human_name)
end
end

def self.described_as(timeout_kind)
new("#{timeout_kind.to_s.tr('_', ' ')} timeout reached")
def self.described_as(human_name)
new("#{human_name.to_s.tr('_', ' ')} timeout reached")
end
end

Expand Down

0 comments on commit 87e91d9

Please sign in to comment.