AbstractMavenReport.execut() exception handling
-----------------------------------------------
Key: MNG-564
URL: http://jira.codehaus.org/browse/MNG-564
Project: Maven 2
Type: Bug
Components: maven-reports
Versions: 2.0-alpha-3
Environment: gentoo linux, java 1.4.2_06
Reporter: Corridor Software Developer
Attachments: MavenReportErrorHandling.patch
org.apache.maven.reporting.AbstractMavenReport is catching all Exceptions in
it's execute method and only printing the following if one occurs:
"An error is occurred in " + getName( locale ) + " report generation."
So there is a grammar error "error is occurred" and a loss of useful
information, namely the stacktrace of the original error. So please change from
throw new MojoExecutionException( "An error is occurred in " +
getName( locale ) + " report generation.");
to
throw new MojoExecutionException( "An error has occurred in " +
getName( locale ) + " report generation.", e );
Note that org.apache.maven.plugin.javadoc.JavadocReport has the same grammar
error, but that's trivial - it attached the original error's stacktrace.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]