]> git.cworth.org Git - sup/commitdiff
minor logging output tweak
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sat, 22 Aug 2009 14:24:11 +0000 (10:24 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sat, 22 Aug 2009 14:24:11 +0000 (10:24 -0400)
lib/sup/util.rb

index 3f6b8402b88c85a54e793d2edf57ee111ed797cd..9c1a84ad2077f8308f5e394e1430474eae6c493f 100644 (file)
@@ -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