Author: toad
Date: 2008-01-16 17:22:14 +0000 (Wed, 16 Jan 2008)
New Revision: 17071
Modified:
trunk/plugins/XMLLibrarian/XMLLibrarian.java
Log:
XMLLibrarian: actually tell the user if the fetch fails!
Modified: trunk/plugins/XMLLibrarian/XMLLibrarian.java
===================================================================
--- trunk/plugins/XMLLibrarian/XMLLibrarian.java 2008-01-16 16:33:17 UTC
(rev 17070)
+++ trunk/plugins/XMLLibrarian/XMLLibrarian.java 2008-01-16 17:22:14 UTC
(rev 17071)
@@ -78,7 +78,7 @@
* Current configuration gets saved by default in the configfile.
* To Save the current configuration use "Save Configuration"
*/
- private int version = 7;
+ private int version = 8;
private String configfile = "XMLLibrarian.xml";
private String DEFAULT_FILE = "index.xml";
boolean goon = true;
@@ -735,10 +735,13 @@
saxParser.parse(is, new LibrarianHandler() );
is.close();
} catch (Throwable err) {
- err.printStackTrace ();}
+ err.printStackTrace ();
+ throw new Exception("Could not parse XML:
"+err.toString());
+ }
}
catch(Exception e){
Logger.error(this,
DEFAULT_INDEX_SITE+"index_"+subIndex+".xml could not be opened "+e.toString(),
e);
+ throw e;
}
return fileuris;
}