From 157ddb7459e585cb4893dd1533e788c8489ee2eb Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 18 Jul 2017 21:06:20 +0200 Subject: [feat] rise an exception if the vpn didn't turn down correctly --- src/leap/bitmask/vpn/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/leap') diff --git a/src/leap/bitmask/vpn/service.py b/src/leap/bitmask/vpn/service.py index ccdbc11f..054845f7 100644 --- a/src/leap/bitmask/vpn/service.py +++ b/src/leap/bitmask/vpn/service.py @@ -124,7 +124,7 @@ class VPNService(HookableService): vpn_ok = self._tunnel.stop() if not vpn_ok: - self.log.error("VPN: error stopping") + raise Exception("Error stopping VPN") return {'result': 'vpn stopped'} -- cgit v1.2.3