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
def error?
code != 404 && code != 403 && code >= 400 && code <= 599
code == 0 || code != 404 && code != 403 && code >= 400 && code <= 599
end
def empty?

Loading…
Cancel
Save