From 37e9c942fa8b51436a332d6b49c3f8f411f57dc3 Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 12 Sep 2012 08:34:10 +0900 Subject: some human friendly stubs for raising these exceptions --- src/leap/eip/exceptions.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/leap/eip') 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" # -- cgit v1.2.3