1
0
Fork 0
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:
Jon Rowe 2013-07-31 21:28:30 +10:00
parent 7697e37e84
commit 924acc6317

View file

@ -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