]> source.dussan.org Git - archiva.git/commitdiff
[MRM-738] increase logging on path errors so we can identify the source
authorBrett Porter <brett@apache.org>
Thu, 20 Mar 2008 05:04:07 +0000 (05:04 +0000)
committerBrett Porter <brett@apache.org>
Thu, 20 Mar 2008 05:04:07 +0000 (05:04 +0000)
Merged from: r639156

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@639158 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/DaysOldRepositoryPurge.java
archiva-base/archiva-consumers/archiva-core-consumers/src/main/java/org/apache/maven/archiva/consumers/core/repository/RetentionCountRepositoryPurge.java

index ae9cefe50570fb5e490619978e239b0f5848fbcb..a844128c3d08fa0c74fa6fdccd0f9603db511c0e 100644 (file)
@@ -140,11 +140,11 @@ public class DaysOldRepositoryPurge
         }
         catch ( LayoutException le )
         {
-            throw new RepositoryPurgeException( le.getMessage() );
+            throw new RepositoryPurgeException( le.getMessage(), le );
         }
         catch ( ContentNotFoundException e )
         {
-            throw new RepositoryPurgeException( e.getMessage() );
+            throw new RepositoryPurgeException( e.getMessage(), e );
         }
     }
 
index 1bb597dc894dc91762e2afb56e2cf450f94810c5..c114cea9b2b473f98e10b25248fcb5c17a2dd1e2 100644 (file)
@@ -64,7 +64,7 @@ public class RetentionCountRepositoryPurge
             {
                 return;
             }
-
+                                                                     
             ArtifactReference artifact = repository.toArtifactReference( path );
 
             if ( VersionUtil.isSnapshot( artifact.getVersion() ) )
@@ -99,7 +99,7 @@ public class RetentionCountRepositoryPurge
         }
         catch ( LayoutException le )
         {
-            throw new RepositoryPurgeException( le.getMessage() );
+            throw new RepositoryPurgeException( le.getMessage(), le );
         }
         catch ( ContentNotFoundException e )
         {