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
This commit is contained in:
Bruno Dilly 2012-08-13 22:23:20 +00:00
parent 9fdaefb00d
commit ebfd9e68d7
1 changed files with 4 additions and 0 deletions

View File

@ -1232,6 +1232,10 @@ def connect_service(path, properties):
log.debug("Failed to Connect to %s (%s): %s", name, path, exc)
return
log.error("Failed to Connect to %s (%s): %s", name, path, exc)
if exc_name == "net.connman.Error.NotRegistered":
popup_error(win, "Failed to Connect to %s" % name,
"Not registered. Try running \"$ econnman-bin -a\"")
return
popup_error(win, "Failed to Connect to %s" % name,
exc.get_dbus_message())