mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Better exception messages on Smack initialization
This commit is contained in:
parent
f48b761c33
commit
f73641da5a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue