Prevent app crash in case if encoding failed
This commit is contained in:
parent
1b2068eaa9
commit
cc8369144d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue