Fix error messages.

This commit is contained in:
Akinori MUSHA 2013-04-21 19:32:57 +09:00
parent 1dd16745e3
commit 17d5a128d7

View file

@ -603,7 +603,7 @@ class HTTP::Cookie
if @domain if @domain
string << "; Domain=#{@domain}" string << "; Domain=#{@domain}"
else else
raise "for_domain is specified but domain is known" raise "for_domain is specified but domain is unknown"
end end
end end
if @path if @path
@ -611,7 +611,7 @@ class HTTP::Cookie
string << "; Path=#{@path}" string << "; Path=#{@path}"
end end
else else
raise "path is known" raise "path is unknown"
end end
if @max_age if @max_age
string << "; Max-Age=#{@max_age}" string << "; Max-Age=#{@max_age}"