summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-07-18 21:06:20 +0200
committerRuben Pollan <meskio@sindominio.net>2017-07-20 21:37:04 +0200
commit157ddb7459e585cb4893dd1533e788c8489ee2eb (patch)
tree44f4cfdc8e13aa4af4f7bc4d4fcd02162247c7f6 /src
parentd25757fba7d98b4535629de9dccf3f32b3e03487 (diff)
[feat] rise an exception if the vpn didn't turn down correctly
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/vpn/service.py2
1 files changed, 1 insertions, 1 deletions
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'}