From 1f66f301ba92b27cdefde7cb83880674895e4e78 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 3 Oct 2016 13:12:05 +0200 Subject: [PATCH] Improve "Invalid affiliation" exception message --- .../smackx/pubsub/provider/AffiliationProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java index 457016874..d32170eab 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java @@ -53,7 +53,10 @@ public class AffiliationProvider extends ExtensionElementProvider { 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; }