diff --git a/source/net/filebot/web/CachedXmlResource.java b/source/net/filebot/web/CachedXmlResource.java index 58428fc4..be029c38 100644 --- a/source/net/filebot/web/CachedXmlResource.java +++ b/source/net/filebot/web/CachedXmlResource.java @@ -35,8 +35,8 @@ public class CachedXmlResource extends AbstractCachedResource { public Document getDocument() throws IOException { try { return WebRequest.getDocument(get()); - } catch (SAXException e) { - throw new RuntimeException(e); + } catch (Exception e) { + throw new IOException("Error while loading XML resource: " + e.getMessage(), e); } }