From b7aa11eb4255ea28f1e8ef449b32bad2a48966a6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 27 Jun 2024 17:07:06 +0200 Subject: [libvirt] transform: Properly bubble up exception --- .../configuration/transformation/TransformationManager.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/org/openslx/virtualization/configuration/transformation/TransformationManager.java b/src/main/java/org/openslx/virtualization/configuration/transformation/TransformationManager.java index 18d7e43..5efaa9f 100644 --- a/src/main/java/org/openslx/virtualization/configuration/transformation/TransformationManager.java +++ b/src/main/java/org/openslx/virtualization/configuration/transformation/TransformationManager.java @@ -119,13 +119,7 @@ public class TransformationManager { for ( Transformation transformation : this.transformations ) { LOGGER.debug( "Apply transformation '" + transformation.getName() + "'" ); - try { - transformation.apply( this.config, this.args ); - } catch ( TransformationException e ) { - final String errorMsg = - "Error in configuration filter '" + transformation.getName() + "': " + e.getLocalizedMessage(); - throw new TransformationException( errorMsg ); - } + transformation.apply( this.config, this.args ); } } -- cgit v1.2.3-55-g7522