Commit dbef9f21 authored by Stan Hu's avatar Stan Hu

Hide error details if there are none

parent a64bb372
......@@ -65,7 +65,7 @@ module BitbucketServer
details = sanitize(response.parsed_response.dig('errors', 0, 'message'))
message = "Error #{response.code}"
message += ": #{details}"
message += ": #{details}" if details
raise ConnectionError, message
rescue JSON::ParserError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment