You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ca...@apache.org on 2006/11/22 05:19:24 UTC
svn commit: r478025 - in
/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle:
CheckstyleReport.java Locator.java
Author: carlos
Date: Tue Nov 21 20:19:23 2006
New Revision: 478025
URL: http://svn.apache.org/viewvc?view=rev&rev=478025
Log:
Improve error reporting
Modified:
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java?view=diff&rev=478025&r1=478024&r2=478025
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java Tue Nov 21 20:19:23 2006
@@ -918,7 +918,7 @@
}
catch ( IOException e )
{
- throw new MavenReportException( "Unable to process header location.", e );
+ throw new MavenReportException( "Unable to process header location: " + headerLocation, e );
}
}
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java?view=diff&rev=478025&r1=478024&r2=478025
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java Tue Nov 21 20:19:23 2006
@@ -137,7 +137,7 @@
if ( retFile.length() <= 0 )
{
- throw new IOException( "Destination file has no content." );
+ throw new IOException( "Destination file has no content: " + retFile + ". Is " + location + " empty?" );
}
return retFile;