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
|
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…
Add table
Add a link
Reference in a new issue