diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-02-26 09:57:11 +0000 |
---|---|---|
committer | Ian Baum <ibaum@gitlab.com> | 2018-03-06 16:17:46 -0600 |
commit | 76cec37071a92d5a77665703aa42cc7810c5c0c5 (patch) | |
tree | 4c45c764475126acfe591e9ab93c5ad294f4077e /lib | |
parent | 09f48199b3c721d54605a55d2ccdf85fc6ebad2f (diff) | |
download | gitlab-ce-76cec37071a92d5a77665703aa42cc7810c5c0c5.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.rb | 2 |
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 |