Throw an error when response code == 0

pull/631/merge
Thibaut Courouble 8 years ago
parent ee21c0bf29
commit 8ef3502cb3

@ -5,7 +5,7 @@ module Docs
end end
def error? def error?
code != 404 && code != 403 && code >= 400 && code <= 599 code == 0 || code != 404 && code != 403 && code >= 400 && code <= 599
end end
def empty? def empty?

Loading…
Cancel
Save