diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-02-26 09:57:11 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-02-26 09:57:11 +0000 |
commit | 336f01c20885e8c648754b7b708ccde07873d415 (patch) | |
tree | dfa4d6ca261a5f2e4788aacd48758c7f17fa50c2 /lib | |
parent | ef9b9b5d56d92f05d511e6043a664d6441918fb2 (diff) | |
parent | 4be20ba923c010c105e30ef8bba3b9bf82b2d0ca (diff) | |
download | gitlab-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.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 |