1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Fix typo on AbstractResponse#return!

This was causing the following error on unknown status codes:

  undefined method `RequestFailed' for #<String:0x00000102bf1a50> (NoMethodError)
This commit is contained in:
Jari Bakken 2011-01-11 11:50:50 +01:00
parent 2caea9b9f0
commit 8cba835c9b

View file

@ -47,7 +47,7 @@ module RestClient
elsif Exceptions::EXCEPTIONS_MAP[code]
raise Exceptions::EXCEPTIONS_MAP[code].new(self, code)
else
raise RequestFailed self
raise RequestFailed, self
end
end