commit 90672a4892dd253786d95dda53de628429a958ec
parent 0830af54e3a1383d9c5112657a070bb54de976b5
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 22 Aug 2009 10:24:11 -0400
minor logging output tweak
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -653,7 +653,7 @@ class Iconv
begin
Iconv.iconv(target + "//IGNORE", charset, text + " ").join[0 .. -2]
rescue Errno::EINVAL, Iconv::InvalidEncoding, Iconv::InvalidCharacter, Iconv::IllegalSequence => e
- info "couldn't transcode text from #{charset} to #{target} (\"#{text[0 ... 20]}\"...)"
+ warn "couldn't transcode text from #{charset} to #{target} (\"#{text[0 ... 20]}\"...) (got #{e.message}); using original as is"
text
end
end