Fix source/type reset on redownload, show num img
[fanfix.git] / src / be / nikiroo / fanfix / DataLoader.java
index ef115c9d60a9b647147fe3dff06c9bf5d95a6283..0f3cad00de0b7a19d11e9ffd95b6421202f7b64a 100644 (file)
@@ -231,6 +231,8 @@ public class DataLoader {
                        ImageIO.write(ImageUtils.fromStream(in), Instance.getConfig()
                                        .getString(Config.IMAGE_FORMAT_CONTENT).toLowerCase(),
                                        target);
+               } catch (IOException e) {
+                       throw new IOException("Cannot write image " + url, e);
                } finally {
                        in.close();
                }