Skip to content

Commit

Permalink
Allow TimeoutError initialization without arguments
Browse files Browse the repository at this point in the history
Fixes failing test in Rack adapter on Ruby 2.1.0
  • Loading branch information
mislav committed Jan 9, 2014
1 parent 7ec3106 commit 1fc2878
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/faraday/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ def inspect
class ConnectionFailed < ClientError; end
class ResourceNotFound < ClientError; end
class ParsingError < ClientError; end
class TimeoutError < ClientError; end

class TimeoutError < ClientError
def initialize(ex = nil)
super(ex || "timeout")
end
end

class SSLError < ClientError
end
Expand Down

0 comments on commit 1fc2878

Please sign in to comment.