Update nikiroo-utils, remove Instance.syserr/trace
[nikiroo-utils.git] / src / be / nikiroo / fanfix / output / InfoCover.java
index 4be150c268843285d952c5672db8fc9c65615118..a1b37913bc9e44789eb3d29801b88bc94362a0ad 100644 (file)
@@ -12,7 +12,7 @@ import be.nikiroo.fanfix.Instance;
 import be.nikiroo.fanfix.bundles.Config;
 import be.nikiroo.fanfix.data.MetaData;
 
-class InfoCover {
+public class InfoCover {
        public static void writeInfo(File targetDir, String targetName,
                        MetaData meta) throws IOException {
                File info = new File(targetDir, targetName + ".info");
@@ -75,8 +75,8 @@ class InfoCover {
                                                targetName + "." + format));
                        } catch (IOException e) {
                                // Allow to continue without cover
-                               Instance.syserr(new IOException(
-                                               "Failed to save the cover image", e));
+                               Instance.getTraceHandler().error(
+                                               new IOException("Failed to save the cover image", e));
                        }
                }
        }