summaryrefslogtreecommitdiff
path: root/app/controllers/import
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-08 14:57:30 -0700
committerStan Hu <stanhu@gmail.com>2018-07-08 14:57:30 -0700
commit589a28889a3c383131e67343e121443e3c88e4a8 (patch)
tree89fa83a198f3c401e9870c62ec3bcee3990b24d8 /app/controllers/import
parented166b791ff5de4216799c2b77dc8cf70dc31df3 (diff)
downloadgitlab-ce-589a28889a3c383131e67343e121443e3c88e4a8.tar.gz
Test server connection error
Diffstat (limited to 'app/controllers/import')
-rw-r--r--app/controllers/import/bitbucket_server_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/import/bitbucket_server_controller.rb b/app/controllers/import/bitbucket_server_controller.rb
index d082c531430..56bd0c1d2c0 100644
--- a/app/controllers/import/bitbucket_server_controller.rb
+++ b/app/controllers/import/bitbucket_server_controller.rb
@@ -51,7 +51,7 @@ class Import::BitbucketServerController < Import::BaseController
render json: { errors: 'This namespace has already been taken! Please choose another one.' }, status: :unprocessable_entity
end
rescue *SERVER_ERRORS => e
- render json: { errors: "Unable to connect to server: #{e}" }
+ render json: { errors: "Unable to connect to server: #{e}" }, status: :unprocessable_entity
end
def configure