Commit 770f18ac50f1603b6f81794acb30065ab077f80f

Authored by Dmitriy Zaporozhets
1 parent b603e0dc

Prevent Application from crash cause of charloc_cholmes error

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
config/initializers/gitlabhq/20_grit_ext.rb
... ... @@ -11,6 +11,9 @@ end
11 11 Grit::GitRuby::Internal::RawObject.class_eval do
12 12 def content
13 13 transcoding(@content)
  14 + rescue Exception => ex
  15 + Rails.logger.error ex.message
  16 + @content
14 17 end
15 18  
16 19 private
... ...