summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-06-14 11:08:39 -0300
committerTomás Touceda <chiiph@leap.se>2013-06-14 11:08:39 -0300
commit1b670d268ee26fc06115702aff055884327f85ed (patch)
tree6c5c429add5d3a5936be2b19c1ef5d725ca86485 /src
parent561e7bc90f21efe5f86be7a842c283f4b7fa7610 (diff)
Improve error messages in login
Diffstat (limited to 'src')
-rw-r--r--src/leap/crypto/srpauth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index bcd24de3..d089fa50 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -459,7 +459,8 @@ class SRPAuth(QtCore.QObject):
:type failure: twisted.python.failure.Failure
"""
logger.error("Error logging in %s" % (failure,))
- self.authentication_finished.emit(False, "%s" % (failure,))
+ self.authentication_finished.emit(False, "%s" % (failure.value,))
+ failure.trap(Exception)
def get_session_id(self):
return self.__instance.get_session_id()