more explicit error message when trying to pair uncompatible devices

This commit is contained in:
Daniel Pavel 2013-07-01 11:41:47 +02:00
parent 9a8d089c73
commit a9ea69b9a1
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ def _pairing_failed(assistant, receiver, error):
header = 'Pairing failed: %s.' % error
if 'timeout' in str(error):
text = 'Make sure your device is within range,\nand it has a decent battery charge.'
elif str(error) == 'device not supported':
text = 'A new device was detected, but\nit is not compatible with this receiver.'
else:
text = None
_create_page(assistant, Gtk.AssistantPageType.SUMMARY, header, 'dialog-error', text)