summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-12 08:34:10 +0900
committerkali <kali@leap.se>2012-09-12 08:34:10 +0900
commit37e9c942fa8b51436a332d6b49c3f8f411f57dc3 (patch)
tree43b9e861e7f1a10afab59b87f0095ba278798cee /src/leap
parent4304ef6107a97d9d03cb626d4a7fcbd5afc1a2c9 (diff)
some human friendly stubs for raising these exceptions
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/eip/exceptions.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/eip/exceptions.py b/src/leap/eip/exceptions.py
index 4d0d70e2..467be7fe 100644
--- a/src/leap/eip/exceptions.py
+++ b/src/leap/eip/exceptions.py
@@ -110,15 +110,18 @@ class EIPConfigurationError(EIPClientError):
class NoDefaultInterfaceFoundError(EIPClientError):
- pass
+ message = "no default interface found"
+ usermessage = "Looks like your computer is not connected to the internet"
class InterfaceNotFoundError(EIPClientError):
- pass
+ # XXX should take iface arg on init maybe?
+ message = "interface not found"
class NoConnectionToGateway(EIPClientError):
- pass
+ message = "no connection to gateway"
+ usermessage = "Looks like there are problems with your internet connection"
#