summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-16 17:20:13 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:17:53 -0400
commitf717c55d1f34ae94b71d5a91b692ae8240bab890 (patch)
tree9dca178680f8ac15162e0b552c4bb19c79a68d4c
parentb94de93268867e8cab533f29e85110e2c35d2bda (diff)
[bug] verbose log if error when (un)installing helpers
-rw-r--r--src/leap/bitmask/vpn/privilege.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/privilege.py b/src/leap/bitmask/vpn/privilege.py
index c7cf1199..3fe693e1 100644
--- a/src/leap/bitmask/vpn/privilege.py
+++ b/src/leap/bitmask/vpn/privilege.py
@@ -61,9 +61,11 @@ def _helper_installer(action):
cmd = "%s %s" % (binary_path, cmd)
if os.getuid() != 0:
cmd = 'pkexec ' + cmd
- retcode, _ = commands.getstatusoutput(cmd)
+ retcode, output = commands.getstatusoutput(cmd)
if retcode != 0:
- raise Exception('Could not uninstall helpers')
+ log.error('Error installing/uninstalling helpers: %s' % output)
+ log.error('Command was: %s' % cmd)
+ raise Exception('Could not install/install helpers')
else:
raise Exception('No install mechanism for this platform')