From bc7e954a49f7d60bb3d4c323ca5101f26890ecd5 Mon Sep 17 00:00:00 2001 From: "Maria Odea B. Ching" Date: Tue, 16 Oct 2007 03:13:03 +0000 Subject: [PATCH] - removed print stack trace in DatabaseCleanupRemoveProjectConsumer git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585014 13f79535-47bb-0310-9956-ffa450edef68 --- .../database/DatabaseCleanupRemoveProjectConsumer.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/DatabaseCleanupRemoveProjectConsumer.java b/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/DatabaseCleanupRemoveProjectConsumer.java index 6203fc9ea..feb0ec672 100644 --- a/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/DatabaseCleanupRemoveProjectConsumer.java +++ b/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/DatabaseCleanupRemoveProjectConsumer.java @@ -119,14 +119,12 @@ public class DatabaseCleanupRemoveProjectConsumer } } catch ( RepositoryException re ) - { - re.printStackTrace(); + { throw new ConsumerException( "Can't run database cleanup remove artifact consumer: " + re.getMessage() ); } catch ( ArchivaDatabaseException e ) - { - e.printStackTrace(); + { throw new ConsumerException( e.getMessage() ); } -- 2.39.5