lib/lucid_http/response.rb in lucid_http-1.1.0 vs lib/lucid_http/response.rb in lucid_http-1.1.1
- old
+ new
@@ -29,10 +29,10 @@
def url
"#{base_url}#{path}"
end
def error
- body.split("\n").first
+ body.split("\n").first || "No error found"
end
def verb
@verb.to_s.upcase
end