mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
remove warning about unused variable and actually set message
This commit is contained in:
parent
7697e37e84
commit
924acc6317
1 changed files with 6 additions and 2 deletions
|
@ -155,7 +155,9 @@ module RestClient
|
|||
# A redirect was encountered; caught by execute to retry with the new url.
|
||||
class Redirect < Exception
|
||||
|
||||
message = 'Redirect'
|
||||
def message
|
||||
'Redirect'
|
||||
end
|
||||
|
||||
attr_accessor :url
|
||||
|
||||
|
@ -165,7 +167,9 @@ module RestClient
|
|||
end
|
||||
|
||||
class MaxRedirectsReached < Exception
|
||||
message = 'Maximum number of redirect reached'
|
||||
def message
|
||||
'Maximum number of redirect reached'
|
||||
end
|
||||
end
|
||||
|
||||
# The server broke the connection prior to the request completing. Usually
|
||||
|
|
Loading…
Reference in a new issue