diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-08 07:49:47 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-08 07:49:47 -0700 |
commit | 4c5085f68de7d9e8f51bdf14b3493207eb12c6b2 (patch) | |
tree | 9d0aef4db8c5b1e4d468d60d28212e2cf43d15b8 /app/controllers/import | |
parent | 5d7e130e64aa08717ef0914348ee458949d7bb14 (diff) | |
download | gitlab-ce-4c5085f68de7d9e8f51bdf14b3493207eb12c6b2.tar.gz |
Add spec for project not found
Diffstat (limited to 'app/controllers/import')
-rw-r--r-- | app/controllers/import/bitbucket_server_controller.rb | 2 |
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 2b48a51a947..d082c531430 100644 --- a/app/controllers/import/bitbucket_server_controller.rb +++ b/app/controllers/import/bitbucket_server_controller.rb @@ -30,7 +30,7 @@ class Import::BitbucketServerController < Import::BaseController repo = bitbucket_client.repo(@project_key, @repo_slug) unless repo - return render json: { errors: "Project #{@project_key}/#{repo_slug} could not be found" } + return render json: { errors: "Project #{@project_key}/#{@repo_slug} could not be found" }, status: :unprocessable_entity end project_name = params[:new_name].presence || repo.name |