Better error message when error during doc generation 29/17429/5
Francois Granade [Wed, 4 Nov 2015 10:22:12 +0000 (11:22 +0100)]
Change-Id: I03c98a27d5298d36511bf5b7752a14f7f11f0c51

scilab/modules/helptools/src/java/org/scilab/modules/helptools/SciDocMain.java

index ad22149..0ca880a 100644 (file)
@@ -173,10 +173,10 @@ public final class SciDocMain {
             }
 
         } catch (SAXException e) {
-            System.err.println("An error occurred during the conversion:");
+            System.err.println("XML parsing error while generating documentation for file " + sourceDoc + ":");
             System.err.println(e.toString());
         } catch (Throwable e) {
-            System.err.println("An error occurred during the conversion:\n");
+            System.err.println("Unhandled error while generating documentation for file " + sourceDoc + ":");
             e.printStackTrace();
             throw e;
         }