diff options
| author | Kali Kaneko <kali@leap.se> | 2017-08-16 17:20:13 -0400 | 
|---|---|---|
| committer | Kali Kaneko <kali@leap.se> | 2017-08-16 17:29:40 -0400 | 
| commit | 185dfdc5c8a4b5711069abaf9d2a883bb4b1cd06 (patch) | |
| tree | 7309ffc4e01695c9e395109bb686bb61a3328e8b | |
| parent | b7d215fe4b936527c6875f36e80fbd2ef1524f54 (diff) | |
[bug] verbose log if error when (un)installing helpers
| -rw-r--r-- | src/leap/bitmask/vpn/privilege.py | 6 | 
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') | 
