diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-15 15:36:12 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-04-15 15:36:12 +0300 |
commit | 27055005468e587f3ac976de24f858fdc152ff44 (patch) | |
tree | 4f9591a55329c2156d085bc0a692ddebb36bf13e /app/controllers | |
parent | e3d818a4e8f51c00aaba1924690f728aa468d7f2 (diff) | |
parent | 36b54fc04f7619faad37f052528f9cb30c3dd99e (diff) |
Merge branch 'fix-repository-rescue' into 'master'
Don't crash when project repository doesn't exist.
See merge request !524
Diffstat (limited to 'app/controllers')
-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 |