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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket_server/connection.rb b/lib/bitbucket_server/connection.rb
index 9c14b26c65a..a492c99d6d7 100644
--- a/lib/bitbucket_server/connection.rb
+++ b/lib/bitbucket_server/connection.rb
@@ -77,7 +77,7 @@ module BitbucketServer
private
def check_errors!(response)
- raise ConnectionError, "Response is not valid JSON" unless response.parsed_response.is_a?(Hash)
+ raise ConnectionError, _("Response is not valid JSON") unless response.parsed_response.is_a?(Hash)
return if response.code >= 200 && response.code < 300
@@ -87,7 +87,7 @@ module BitbucketServer
raise ConnectionError, message
rescue JSON::ParserError
- raise ConnectionError, "Unable to parse the server response as JSON"
+ raise ConnectionError, _("Unable to parse the server response as JSON")
end
def auth