1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Improve "Invalid affiliation" exception message

This commit is contained in:
Florian Schmaus 2016-10-03 13:12:05 +02:00
parent 810e7c8b78
commit 1f66f301ba

View file

@ -53,7 +53,10 @@ public class AffiliationProvider extends ExtensionElementProvider<Affiliation> {
affiliation = new Affiliation(jid, affiliationType, namespace);
}
else {
throw new SmackException("Invalid affililation");
throw new SmackException("Invalid affililation. Either one of 'node' or 'jid' must be set"
+ ". Node: " + node
+ ". Jid: " + jid
+ '.');
}
return affiliation;
}