Browse Source

smack-xmlparser: Improve ISE message

clusterIntTest
Florian Schmaus 8 months ago
parent
commit
be0830fc8f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      smack-xmlparser/src/main/java/org/jivesoftware/smack/xml/SmackXmlParser.java

+ 2
- 1
smack-xmlparser/src/main/java/org/jivesoftware/smack/xml/SmackXmlParser.java View File

@@ -31,7 +31,8 @@ public class SmackXmlParser {
public static XmlPullParserFactory getXmlPullParserFactory() {
Iterator<XmlPullParserFactory> iterator = xmlPullParserFactoryServiceLoader.iterator();
if (!iterator.hasNext()) {
throw new IllegalStateException("Could not load a XmlPullParserFactory via Service Provider Interface (SPI)");
throw new IllegalStateException(
"No XmlPullParserFactory registered with Service Provider Interface (SPI). Is smack-xmlparser-xpp3 or smack-xmlparser-stax in classpath?");
}
return iterator.next();
}


Loading…
Cancel
Save