fix: if on-demand download of printed image fails show missing proxy image, not missing card image.

master
lodici 2017-02-21 00:01:12 +00:00
parent f0ffa1670f
commit 41ee7ae668
1 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import java.nio.file.Path;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
import magic.cardBuilder.renderers.CardBuilder;
import magic.data.GeneralConfig;
import magic.exception.DownloadException;
import magic.model.IRenderableCard;
@ -81,8 +82,8 @@ public final class MagicCardImages {
try {
return PrintedCardImage.get(face);
} catch (DownloadException ex) {
LOGGER.log(Level.SEVERE, null, ex);
return MagicImages.MISSING_CARD;
System.err.println(ex.toString());
return CardBuilder.getCardBuilderImage(face);
}
}