From 820709938e4313e04bab160115cc215769c3a1fb Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 1 Jun 2017 03:06:51 +0200 Subject: [refactor] improve error reporting when openvpn not found --- src/leap/bitmask/vpn/launcher.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/leap/bitmask/vpn/launcher.py') 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 = [] -- cgit v1.2.3