You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ff...@apache.org on 2019/10/10 20:40:43 UTC

[karaf] branch master updated: [KARAF-6447]add MalformedURLException as IOException cause

This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d83b30  [KARAF-6447]add MalformedURLException as IOException cause
1d83b30 is described below

commit 1d83b303796aeea408870d4eb55e79e30b5ba978
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Thu Oct 10 16:40:27 2019 -0400

    [KARAF-6447]add MalformedURLException as IOException cause
---
 .../apache/karaf/features/internal/service/FeatureConfigInstaller.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/service/FeatureConfigInstaller.java b/features/core/src/main/java/org/apache/karaf/features/internal/service/FeatureConfigInstaller.java
index 8dfc983..cbb811b 100644
--- a/features/core/src/main/java/org/apache/karaf/features/internal/service/FeatureConfigInstaller.java
+++ b/features/core/src/main/java/org/apache/karaf/features/internal/service/FeatureConfigInstaller.java
@@ -106,7 +106,7 @@ public class FeatureConfigInstaller {
                 try {
                     props.load(new URL(val));
                 } catch (java.net.MalformedURLException e) {
-                    throw new IOException("Failed to load config info from URL [" + val + "] for feature [" + feature.getName() + "/" + feature.getVersion() + "].");
+                    throw new IOException("Failed to load config info from URL [" + val + "] for feature [" + feature.getName() + "/" + feature.getVersion() + "].", e);
                 }
             } else {
                 props.load(new StringReader(val));