diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-15 00:26:53 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-15 00:26:53 +0300 |
commit | 36b54fc04f7619faad37f052528f9cb30c3dd99e (patch) | |
tree | 3c5df3c20a62f0e8163bf988ef065a05b58f792b /app | |
parent | ac5af61499a8612ef6a51b2bebd18c4c1a083583 (diff) |
Don't crash when project repository doesn't exist.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0521a9ef8cf..920a981e7c9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -126,7 +126,7 @@ class ApplicationController < ActionController::Base def repository @repository ||= project.repository - rescue Grit::NoSuchPathError(e) + rescue Grit::NoSuchPathError => e log_exception(e) nil end |