summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-05 16:06:15 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-08 13:09:24 +0200
commit94fa2abad00ce77e7a07b89f074118b0a3a08733 (patch)
tree1240b5c454b98a3f8df02670b5a9f1040f6de8b4 /test
parentfe6e59c7d6a44cef8cc2518cf22132978b2a79d2 (diff)
downloadconnman-94fa2abad00ce77e7a07b89f074118b0a3a08733.tar.gz
connman-94fa2abad00ce77e7a07b89f074118b0a3a08733.tar.bz2
connman-94fa2abad00ce77e7a07b89f074118b0a3a08733.zip
test: Pretty print the error when trying to set/unset VPN property
Diffstat (limited to 'test')
-rwxr-xr-xtest/vpn-property10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/vpn-property b/test/vpn-property
index 2bafa1ad..d05f4c7a 100755
--- a/test/vpn-property
+++ b/test/vpn-property
@@ -61,6 +61,12 @@ if (argc < 3):
print " %s = %s" % (key, val)
elif (argc < 4):
- connection.ClearProperty(sys.argv[2])
+ try:
+ connection.ClearProperty(sys.argv[2])
+ except dbus.DBusException, error:
+ print "%s: %s" % (error._dbus_error_name, error.message)
else:
- connection.SetProperty(sys.argv[2], sys.argv[3])
+ try:
+ connection.SetProperty(sys.argv[2], sys.argv[3])
+ except dbus.DBusException, error:
+ print "%s: %s" % (error._dbus_error_name, error.message)