From 82639b94b7792b3b6815daafa67556fe97ac415f Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 26 Oct 2019 17:21:21 +0200 Subject: show reason in error message --- .../java/de/pixart/messenger/xmpp/jingle/JingleConnection.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main/java/de/pixart') diff --git a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java index bfaeacc31..9adb6f62e 100644 --- a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java @@ -234,7 +234,12 @@ public class JingleConnection implements Transferable { } else if (reason.hasChild("success")) { this.receiveSuccess(); } else { - this.fail(reason.getName()); + final List children = reason.getChildren(); + if (children.size() == 1) { + this.fail(children.get(0).getName()); + } else { + this.fail(); + } } } else { this.fail(); -- cgit v1.2.3