mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
wfd-source: Print call trace on error
This commit is contained in:
parent
3910b9d9c3
commit
bfa670d4ef
@ -15,6 +15,7 @@ import collections
|
|||||||
import collections.abc
|
import collections.abc
|
||||||
import random
|
import random
|
||||||
import dataclasses
|
import dataclasses
|
||||||
|
import traceback
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('GLib', '2.0')
|
gi.require_version('GLib', '2.0')
|
||||||
@ -1139,8 +1140,13 @@ class WFDSource(Gtk.Window):
|
|||||||
|
|
||||||
def on_rtsp_error(excp):
|
def on_rtsp_error(excp):
|
||||||
self.disconnect_peer(dev_path, path)
|
self.disconnect_peer(dev_path, path)
|
||||||
|
tb = ''
|
||||||
|
try:
|
||||||
|
tb = '\n\nDebug info: ' + traceback.format_exc()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
dialog = Gtk.MessageDialog(parent=self, message_type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.OK, text='Negotiation failed')
|
dialog = Gtk.MessageDialog(parent=self, message_type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.OK, text='Negotiation failed')
|
||||||
dialog.format_secondary_text('RTSP error when talking to ' + self.objects[path][PEER_IF]['Name'] + ': ' + repr(excp))
|
dialog.format_secondary_text('RTSP error when talking to ' + self.objects[path][PEER_IF]['Name'] + ': ' + repr(excp) + tb)
|
||||||
dialog.show()
|
dialog.show()
|
||||||
|
|
||||||
def on_ok(response, *args):
|
def on_ok(response, *args):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user