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:41:34 UTC
[karaf] 02/02: [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 karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git
commit 36e39d1cdb5502902fa4d10dbd4be0c628f924e1
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Thu Oct 10 16:40:27 2019 -0400
[KARAF-6447]add MalformedURLException as IOException cause
(cherry picked from commit 1d83b303796aeea408870d4eb55e79e30b5ba978)
---
.../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));