Prevent app crash in case if encoding failed
This commit is contained in:
parent
1b2068eaa9
commit
cc8369144d
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ module Gitlabhq
|
|||
else
|
||||
message
|
||||
end.force_encoding("utf-8")
|
||||
# Prevent app from crash cause of
|
||||
# encoding errors
|
||||
rescue
|
||||
""
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue