lib/eco/api/common/people/entry_factory.rb in eco-helpers-2.0.57 vs lib/eco/api/common/people/entry_factory.rb in eco-helpers-2.0.58
- old
+ new
@@ -206,9 +206,10 @@
replacement = '<' + bytes.unpack('H*')[0] + '>'
if tolerance <= 0
logger.error("There were more than 5 encoding errors in the file '#{file}'.")
return content
else
+ tolerance -= 1
logger.error("Encoding problem in file '#{file}': '#{replacement}'.")
replacement
end
end
end