GitLab says repository does not exist and hides the error

I spent too much time tracking down this problem...

I'm reporting it for informational purposes and maybe as a feature request to improve the error output when catching errors with rescue.

The error message that was hidden:

Rugged::OSError (Could not open '/etc/gitconfig': Permission denied):
  app/models/repository.rb:11:in `new'
  app/models/repository.rb:11:in `initialize'
  app/models/project.rb:263:in `new'
  app/models/project.rb:263:in `repository'
  app/controllers/application_controller.rb:133:in `repository'

Which is actually being thrown by Gitlab::Git::Repository in rugged. Both Gitlab::Git::Repository and Repository swallowed the error and the no_repo.html.haml template did not show any error.