Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-02-26 12:57:11 +0300
committerIan Baum <ibaum@gitlab.com>2018-03-07 01:17:46 +0300
commit76cec37071a92d5a77665703aa42cc7810c5c0c5 (patch)
tree4c45c764475126acfe591e9ab93c5ad294f4077e /lib
parent09f48199b3c721d54605a55d2ccdf85fc6ebad2f (diff)
Merge branch 'mk/fix-error-code-for-repo-does-not-exist' into 'master'
Respond with more appropriate HTTP status code when repo does not exist See merge request gitlab-org/gitlab-ce!17341
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index bbdb593d4e2..6400089a22f 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -199,7 +199,7 @@ module Gitlab
def check_repository_existence!
unless repository.exists?
- raise UnauthorizedError, ERROR_MESSAGES[:no_repo]
+ raise NotFoundError, ERROR_MESSAGES[:no_repo]
end
end