summaryrefslogtreecommitdiff
path: root/lib/bitbucket_server/connection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket_server/connection.rb')
-rw-r--r--lib/bitbucket_server/connection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitbucket_server/connection.rb b/lib/bitbucket_server/connection.rb
index ee0888eeecf..e100d8bde1c 100644
--- a/lib/bitbucket_server/connection.rb
+++ b/lib/bitbucket_server/connection.rb
@@ -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