From f8adecd012161e97067b10c77864ca0655f2c544 Mon Sep 17 00:00:00 2001 From: melvin Date: Sat, 21 May 2011 15:03:09 +0800 Subject: [PATCH] print an error message if an exception occurs when downloading images --- src/magic/data/DownloadImageFiles.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/magic/data/DownloadImageFiles.java b/src/magic/data/DownloadImageFiles.java index 1e47bf52dc..ee6bc9b6dd 100644 --- a/src/magic/data/DownloadImageFiles.java +++ b/src/magic/data/DownloadImageFiles.java @@ -12,15 +12,19 @@ import java.util.ArrayList; import magic.MagicMain; import magic.model.MagicCardDefinition; +/** + * Download the necessary images from the WWW + */ public class DownloadImageFiles extends ArrayList { private static final long serialVersionUID = 1L; public DownloadImageFiles(final String filename) { - try { loadDownloadImageFiles(filename); - } catch (final Exception ex) {} + } catch (final Exception ex) { + System.err.println("ERROR during DownloadImageFiles"); + } } private void loadDownloadImageFiles(final String filename) throws IOException {