prettier error message if unpair fails
This commit is contained in:
parent
065b8628d2
commit
47bcd4478c
|
@ -24,7 +24,7 @@ def _error_dialog(reason, object):
|
|||
'and plugging it back in.' % object)
|
||||
elif reason == 'unpair':
|
||||
title = 'Unpairing failed'
|
||||
text = ('Failed to unpair device\n%s .' % object)
|
||||
text = ('Failed to unpair\n%s\nfrom %s.' % (object.name, object.receiver.name))
|
||||
else:
|
||||
raise Exception("ui.error_dialog: don't know how to handle (%s, %s)", reason, object)
|
||||
|
||||
|
|
Loading…
Reference in New Issue