diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-02-22 21:51:00 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-25 03:22:29 +0300 |
commit | 4be20ba923c010c105e30ef8bba3b9bf82b2d0ca (patch) | |
tree | 33d714281823bc7f21739a3f11a4328f6c3b7030 /lib | |
parent | b9ed721bc23ef2debe321393c2bc161a60912e5e (diff) |
Respond 404 when repo does not exist
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 |