diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-31 12:58:26 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-31 12:58:26 -0700 |
commit | dbef9f21511f1b06135763e93bac484d49c4d72c (patch) | |
tree | 71ace9b829eb08e9d52f1a999a97eee76da30c84 /lib/bitbucket_server | |
parent | a64bb3727bb78d3a69298d8dfcf3ba774652b011 (diff) | |
download | gitlab-ce-dbef9f21511f1b06135763e93bac484d49c4d72c.tar.gz |
Hide error details if there are none
Diffstat (limited to 'lib/bitbucket_server')
-rw-r--r-- | lib/bitbucket_server/connection.rb | 2 |
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 |