summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-08-13 22:23:20 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-08-13 22:23:20 +0000
commitebfd9e68d70c64d172648b04fc4377151f4b6dc9 (patch)
tree1e63eab682e3afe2a747a53384bcf1b8520e2110
parent9fdaefb00db2cb24e43200e24c167c610335e583 (diff)
Econnman: use a more informative message when not registered
If no agent is registered, user should know she can run econnman-bin with -a to register econnman-bin agent. SVN revision: 75226
-rwxr-xr-xeconnman-bin.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/econnman-bin.in b/econnman-bin.in
index 12afa15..26311ea 100755
--- a/econnman-bin.in
+++ b/econnman-bin.in
@@ -1232,6 +1232,10 @@ def connect_service(path, properties):
1232 log.debug("Failed to Connect to %s (%s): %s", name, path, exc) 1232 log.debug("Failed to Connect to %s (%s): %s", name, path, exc)
1233 return 1233 return
1234 log.error("Failed to Connect to %s (%s): %s", name, path, exc) 1234 log.error("Failed to Connect to %s (%s): %s", name, path, exc)
1235 if exc_name == "net.connman.Error.NotRegistered":
1236 popup_error(win, "Failed to Connect to %s" % name,
1237 "Not registered. Try running \"$ econnman-bin -a\"")
1238 return
1235 popup_error(win, "Failed to Connect to %s" % name, 1239 popup_error(win, "Failed to Connect to %s" % name,
1236 exc.get_dbus_message()) 1240 exc.get_dbus_message())
1237 1241