sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1637098 - /sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Doclet.java
Date Thu, 06 Nov 2014 13:35:26 GMT
Author: desruisseaux
Date: Thu Nov  6 13:35:26 2014
New Revision: 1637098

URL: http://svn.apache.org/r1637098
Log:
More informative message in case of error.

Modified:
    sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Doclet.java

Modified: sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Doclet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Doclet.java?rev=1637098&r1=1637097&r2=1637098&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Doclet.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Doclet.java
[UTF-8] Thu Nov  6 13:35:26 2014
@@ -26,6 +26,8 @@ import java.io.OutputStreamWriter;
 import java.io.BufferedReader;
 import java.io.BufferedWriter;
 import java.io.FilenameFilter;
+import java.io.PrintWriter;
+import java.io.StringWriter;
 import java.nio.file.FileSystemException;
 import java.nio.file.Files;
 import com.sun.javadoc.RootDoc;
@@ -86,7 +88,10 @@ public final class Doclet extends HtmlDo
             copyStylesheet(input, output);
             copyResources(input.getParentFile(), output);
         } catch (IOException e) {
-            root.printError(e.toString());
+            final StringWriter buffer = new StringWriter();
+            final PrintWriter p = new PrintWriter(buffer);
+            e.printStackTrace(p);
+            root.printError(buffer.toString());
             return false;
         }
         return status;



Mime
View raw message