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:
parent
2caea9b9f0
commit
8cba835c9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue