From 6155938623bd7f0253e1f123d9d015de58b6b750 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 5 Oct 2019 22:14:38 +0200 Subject: [PATCH] show reason in error message --- .../siacs/conversations/xmpp/jingle/JingleConnection.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnection.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnection.java index d7bc7db0c..ac88b52f0 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/JingleConnection.java @@ -232,7 +232,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();