mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Improve "Invalid affiliation" exception message
This commit is contained in:
parent
810e7c8b78
commit
1f66f301ba
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ public class AffiliationProvider extends ExtensionElementProvider<Affiliation> {
|
||||||
affiliation = new Affiliation(jid, affiliationType, namespace);
|
affiliation = new Affiliation(jid, affiliationType, namespace);
|
||||||
}
|
}
|
||||||
else {
|
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;
|
return affiliation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue