Commit cc8369144db2147d2956e8dd7d314e9a7dfd4fbb

Authored by Dmitriy Zaporozhets
1 parent 1b2068ea

Prevent app crash in case if encoding failed

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
lib/gitlabhq/encode.rb
... ... @@ -11,6 +11,10 @@ module Gitlabhq
11 11 else
12 12 message
13 13 end.force_encoding("utf-8")
  14 + # Prevent app from crash cause of
  15 + # encoding errors
  16 + rescue
  17 + ""
14 18 end
15 19 end
16 20 end
... ...