summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-02-26 09:57:11 +0000
committerDouwe Maan <douwe@gitlab.com>2018-02-26 09:57:11 +0000
commit336f01c20885e8c648754b7b708ccde07873d415 (patch)
treedfa4d6ca261a5f2e4788aacd48758c7f17fa50c2 /lib
parentef9b9b5d56d92f05d511e6043a664d6441918fb2 (diff)
parent4be20ba923c010c105e30ef8bba3b9bf82b2d0ca (diff)
downloadgitlab-ce-336f01c20885e8c648754b7b708ccde07873d415.tar.gz
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