- if (verbosw && status == OK) {
- report (ct->c_partno, ct->c_file, "convert %s to %s",
- content_charset(ct), dest_charset);
+ if (status == OK) {
+ if (verbosw) {
+ report (NULL, ct->c_partno, ct->c_file,
+ "convert %s to %s",
+ content_charset(ct), dest_charset);
+ }
+ } else {
+ report ("iconv", ct->c_partno, ct->c_file,
+ "failed to convert %s to %s",
+ content_charset(ct), dest_charset);