From f717c55d1f34ae94b71d5a91b692ae8240bab890 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 16 Aug 2017 17:20:13 -0400 Subject: [bug] verbose log if error when (un)installing helpers --- src/leap/bitmask/vpn/privilege.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/leap/bitmask') diff --git a/src/leap/bitmask/vpn/privilege.py b/src/leap/bitmask/vpn/privilege.py index c7cf119..3fe693e 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') -- cgit v1.2.3