diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-01 03:06:51 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-06-01 03:33:40 +0200 |
commit | 820709938e4313e04bab160115cc215769c3a1fb (patch) | |
tree | 92adb569fc1433da6f7c1bfbc3313dfbed9a8352 /src/leap/bitmask/vpn/launcher.py | |
parent | 2db7202e6c3a520a5b6fe395dd74d40d8e53c481 (diff) |
[refactor] improve error reporting when openvpn not found
Diffstat (limited to 'src/leap/bitmask/vpn/launcher.py')
-rw-r--r-- | src/leap/bitmask/vpn/launcher.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/bitmask/vpn/launcher.py b/src/leap/bitmask/vpn/launcher.py index 28c8a31..f412ace 100644 --- a/src/leap/bitmask/vpn/launcher.py +++ b/src/leap/bitmask/vpn/launcher.py @@ -201,7 +201,9 @@ class VPNLauncher(object): if not os.path.isfile(openvpn_path): log.warn('Could not find openvpn bin in path %s' % ( openvpn_path)) - raise OpenVPNNotFoundException() + err = OpenVPNNotFoundException() + err.expected = True + raise err args = [] |