summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/launcher.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-06-01 03:06:51 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-06-01 03:33:40 +0200
commit820709938e4313e04bab160115cc215769c3a1fb (patch)
tree92adb569fc1433da6f7c1bfbc3313dfbed9a8352 /src/leap/bitmask/vpn/launcher.py
parent2db7202e6c3a520a5b6fe395dd74d40d8e53c481 (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.py4
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 = []