prettier error message if unpair fails

This commit is contained in:
Daniel Pavel 2013-07-05 14:35:06 +02:00
parent 065b8628d2
commit 47bcd4478c
1 changed files with 1 additions and 1 deletions

View File

@ -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)