plugin XEP-0166, XEP-0234: better management of terminate:
- new `text` argument to specify human readable reason of termination - handling of `FirstError` (used when a error happens in a DeferredList) - handling of `StanzaError` - (XEP-0234): show human readable text of the reason if present
This commit is contained in:
parent
3024ae2be0
commit
8ed9e310c5
1 changed files with 13 additions and 3 deletions
|
|
@ -698,6 +698,8 @@ class XEP_0234:
|
|||
first_child = jingle_elt.firstChildElement()
|
||||
if first_child is not None:
|
||||
reason = first_child.name
|
||||
if jingle_elt.text is not None:
|
||||
reason = f"{reason} - {jingle_elt.text}"
|
||||
else:
|
||||
reason = C.PROGRESS_ERROR_FAILED
|
||||
self.host.bridge.progressError(
|
||||
|
|
|
|||
Loading…
Reference in a new issue