* less clutter in error reporting

This commit is contained in:
Reinhard Pointner 2013-10-21 02:30:11 +00:00
parent a7907feba0
commit 3ad6b1f55d
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}
}

View File

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