Commit c88ae4d1 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Make `Gitlab::Git::Repository::NoRepository` exception discoverable

parent e191c17e
...@@ -36,7 +36,7 @@ module Geo ...@@ -36,7 +36,7 @@ module Geo
expire_repository_caches expire_repository_caches
finished_at = DateTime.now finished_at = DateTime.now
rescue Gitlab::Shell::Error => e rescue Gitlab::Git::Repository::NoRepository, Gitlab::Shell::Error => e
Rails.logger.error("#{self.class.name}: Error syncing repository for project #{project.path_with_namespace}: #{e}") Rails.logger.error("#{self.class.name}: Error syncing repository for project #{project.path_with_namespace}: #{e}")
end end
......
...@@ -20,8 +20,8 @@ module Geo ...@@ -20,8 +20,8 @@ module Geo
project.repository.expire_branch_cache project.repository.expire_branch_cache
project.repository.expire_content_cache project.repository.expire_content_cache
end end
rescue Gitlab::Shell::Error => e rescue Gitlab::Git::Repository::NoRepository, Gitlab::Shell::Error => e
logger.error "Error fetching repository for project #{project.path_with_namespace}: #{e}" logger.error "#{self.class.name}: Error fetching repository for project #{project.path_with_namespace}: #{e}"
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment