Skip to content

Commit 4a9028f

Browse files
ccmeyersNaila Nur
authored andcommitted
Added more info from response to RHapi::CeonnectionError message
Signed-off-by: Naila Nur <nnur@mavenlink.com>
1 parent 965c873 commit 4a9028f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/r_hapi/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get(url)
9090
RHapi::ConnectionError.raise_error("#{response.response_code}\n Error is: #{err.inspect}")
9191
end
9292
end
93-
RHapi::ConnectionError.raise_error(response.header_str) unless response.response_code.to_s =~ /2\d\d/
93+
RHapi::ConnectionError.raise_error("#{response.header_str.inspect} #{response.response_code.inspect} #{response.body.inspect}") unless response.response_code.to_s =~ /2\d\d/
9494
response
9595
end
9696

0 commit comments

Comments
 (0)