From f73641da5a79f0f5216671938bee228dbfa284c0 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 4 Apr 2018 16:42:29 +0200 Subject: [PATCH] Better exception messages on Smack initialization --- .../main/java/org/jivesoftware/smack/SmackInitialization.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java b/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java index 20ac87a8a..7bf582940 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SmackInitialization.java @@ -90,14 +90,14 @@ public final class SmackInitialization { configFileStream = FileUtils.getStreamForClasspathFile(DEFAULT_CONFIG_FILE, null); } catch (Exception e) { - throw new IllegalStateException(e); + throw new IllegalStateException("Could not load Smack configuration file", e); } try { processConfigFile(configFileStream, null); } catch (Exception e) { - throw new IllegalStateException(e); + throw new IllegalStateException("Could not parse Smack configuration file", e); } // Add the Java7 compression handler first, since it's preferred