Commit 770f18ac50f1603b6f81794acb30065ab077f80f
1 parent
b603e0dc
Exists in
master
and in
4 other branches
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,6 +11,9 @@ end | ||
11 | Grit::GitRuby::Internal::RawObject.class_eval do | 11 | Grit::GitRuby::Internal::RawObject.class_eval do |
12 | def content | 12 | def content |
13 | transcoding(@content) | 13 | transcoding(@content) |
14 | + rescue Exception => ex | ||
15 | + Rails.logger.error ex.message | ||
16 | + @content | ||
14 | end | 17 | end |
15 | 18 | ||
16 | private | 19 | private |