mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +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);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue