From 3ad6b1f55d4601ef9a3a60a00d6f6915cee119bc Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 21 Oct 2013 02:30:11 +0000 Subject: [PATCH] * less clutter in error reporting --- source/net/sourceforge/filebot/cli/CmdlineOperations.java | 2 +- source/net/sourceforge/filebot/web/TheTVDBClient.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/sourceforge/filebot/cli/CmdlineOperations.java b/source/net/sourceforge/filebot/cli/CmdlineOperations.java index 25a5d060..9af49b17 100644 --- a/source/net/sourceforge/filebot/cli/CmdlineOperations.java +++ b/source/net/sourceforge/filebot/cli/CmdlineOperations.java @@ -264,7 +264,7 @@ public class CmdlineOperations implements CmdlineInterface { episodes.addAll(db.getEpisodeList(it, sortOrder, locale)); Analytics.trackEvent(db.getName(), "FetchEpisodeList", it.getName()); } catch (IOException e) { - CLILogger.log(Level.SEVERE, e.getMessage(), e); + CLILogger.log(Level.SEVERE, e.getMessage()); } } } diff --git a/source/net/sourceforge/filebot/web/TheTVDBClient.java b/source/net/sourceforge/filebot/web/TheTVDBClient.java index d6cfb910..9ab997d5 100644 --- a/source/net/sourceforge/filebot/web/TheTVDBClient.java +++ b/source/net/sourceforge/filebot/web/TheTVDBClient.java @@ -285,7 +285,7 @@ public class TheTVDBClient extends AbstractEpisodeListProvider { try { return resource.getDocument(); } catch (FileNotFoundException e) { - throw new IllegalArgumentException("Resource not found: " + getResourceURL(mirrorType, path)); // simplify error message + throw new FileNotFoundException("Resource not found: " + getResourceURL(mirrorType, path)); // simplify error message } }