Skip to content
Snippets Groups Projects
Commit f909e25d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve gitlab encode method

parent 5ff658a6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,7 +27,8 @@ module Gitlab
 
# Prevent app from crash cause of encoding errors
rescue
"--broken encoding: #{detect[:encoding]}"
encoding = detect ? detect[:encoding] : "unknown"
"--broken encoding: #{encoding}"
end
 
def detect_encoding message
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment