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