Kaydet (Commit) 3c9dacaf authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

User friendly error messages

üst a25dcbd2
......@@ -280,10 +280,11 @@ def main(args):
elif args[1] in operations and args[0] == "dbus":
manage_dbus(args[1], use_color, quiet)
elif args[1] in operations:
manage_service(args[0], args[1], use_color, quiet)
try:
manage_service(args[0], args[1], use_color, quiet)
except dbus.DBusException, e:
print e.args[0]
else:
usage()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment