diff --git a/src/fr/devinsy/xid/Presenter.java b/src/fr/devinsy/xid/Presenter.java index f71d009..e9050fb 100644 --- a/src/fr/devinsy/xid/Presenter.java +++ b/src/fr/devinsy/xid/Presenter.java @@ -721,38 +721,37 @@ public class Presenter // Parse the input file. result = db.parse (source); -System.out.println("ZO4"); + if (errorHandler.hasError ()) { - System.out.println("ZO4a"); +System.out.println("ZO4a"); throw new Exception (errorHandler.toString ()); } else - {System.out.println("ZO4b"); + { DomPresenter.addMetaTag (result, "generator", "XID 0.0"); } -System.out.println("ZO5"); } catch (ParserConfigurationException exception) { String errorMessage = "Parser configuration exception: " + exception.getMessage (); logger.error (errorMessage); result = null; - throw new Exception (errorMessage); + throw new Exception (errorMessage, exception); } catch (SAXException exception) { String errorMessage = "Error during SAX parsing: " + exception.getMessage (); logger.error (errorMessage); result = null; - throw new Exception (errorMessage); + throw new Exception (errorMessage, exception); } catch (IOException exception) { String errorMessage = "IOError during parsing." + exception.getMessage (); logger.error (errorMessage); result = null; - throw new Exception (errorMessage); + throw new Exception (errorMessage, exception); } //