diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySession.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySession.java index 84ac9fdcd..07be9cc1b 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySession.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/RepositorySession.java @@ -86,7 +86,6 @@ public class RepositorySession * exception occurs. */ public void close() - throws MetadataRepositoryException { try { @@ -98,7 +97,7 @@ public class RepositorySession catch ( MetadataRepositoryException e ) { // olamy use revert here ? - throw e; + throw new RuntimeException( e.getMessage(), e ); } finally {