From a9ea69b9a1de0f69a231b01ee590e05ce7deb9d2 Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Mon, 1 Jul 2013 11:41:47 +0200 Subject: [PATCH] more explicit error message when trying to pair uncompatible devices --- lib/solaar/ui/pair_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/solaar/ui/pair_window.py b/lib/solaar/ui/pair_window.py index 752fc6bf..6367c870 100644 --- a/lib/solaar/ui/pair_window.py +++ b/lib/solaar/ui/pair_window.py @@ -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)