Commit cc836914 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Prevent app crash in case if encoding failed

parent 1b2068ea
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment