提交 cc836914 编写于 作者: D Dmitriy Zaporozhets

Prevent app crash in case if encoding failed

上级 1b2068ea
...@@ -11,6 +11,10 @@ module Gitlabhq ...@@ -11,6 +11,10 @@ module Gitlabhq
else else
message message
end.force_encoding("utf-8") end.force_encoding("utf-8")
# Prevent app from crash cause of
# encoding errors
rescue
""
end end
end end
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册