From 6be09079a3a33b5e0446eff250e08e8124029794 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Fri, 26 Oct 2018 00:59:14 +0200 Subject: [PATCH] Improve logging --- src/main/java/ctbrec/ui/ThumbCell.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/ctbrec/ui/ThumbCell.java b/src/main/java/ctbrec/ui/ThumbCell.java index 64342f3c..c50d91f2 100644 --- a/src/main/java/ctbrec/ui/ThumbCell.java +++ b/src/main/java/ctbrec/ui/ThumbCell.java @@ -1,5 +1,6 @@ package ctbrec.ui; +import java.io.EOFException; import java.io.IOException; import java.util.Collections; import java.util.List; @@ -207,8 +208,14 @@ public class ThumbCell extends StackPane { LOG.trace("Removing invalid resolution value for {}", model.getName()); model.invalidateCacheEntries(); } - } catch (ExecutionException | IOException | InterruptedException e1) { + } catch (IOException | InterruptedException e1) { LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e1); + } catch(ExecutionException e) { + if(e.getCause() instanceof EOFException) { + LOG.warn("Couldn't update resolution tag for model {}. Playlist empty", model.getName()); + } else { + LOG.warn("Couldn't update resolution tag for model {}", model.getName(), e); + } } finally { ThumbOverviewTab.resolutionProcessing.remove(model); }