summaryrefslogtreecommitdiff
path: root/src/leap/eip/exceptions.py
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-10-01 16:58:39 -0400
committerantialias <antialias@leap.se>2012-10-01 16:58:39 -0400
commitd0540e808749ff9f9e90ec5e055168f5f408e51b (patch)
tree64d9d7009b7b6150205d6390e8a6eaffd79398c8 /src/leap/eip/exceptions.py
parentbee0813fd3d99be1bf85f55fd63bc0c603d0104e (diff)
Now throws a CriticalError when an pre-exisiting openvpn istance is found.
Diffstat (limited to 'src/leap/eip/exceptions.py')
-rw-r--r--src/leap/eip/exceptions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/eip/exceptions.py b/src/leap/eip/exceptions.py
index f048621f..bb375cf0 100644
--- a/src/leap/eip/exceptions.py
+++ b/src/leap/eip/exceptions.py
@@ -93,6 +93,13 @@ class LeapBadConfigFetchedError(Warning):
message = "provider sent a malformed json file"
usermessage = "an error occurred during configuratio of leap services"
+
+class OpenVPNAlreadyRunning(EIPClientError):
+ message = "Another OpenVPN Process is already running."
+ usermessage = ("Another OpenVPN Process has been detect it."
+ "Please close it before starting LEAP")
+
+
#
# errors still needing some love
#