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 } }