Prevent app crash in case if encoding failed

This commit is contained in:
Dmitriy Zaporozhets
2012-05-22 14:57:04 +03:00
parent 1b2068eaa9
commit cc8369144d
+4
View File
@@ -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