From a6dc6a1f6d7166c79516ed40f43c1b46d26d169e Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Sat, 27 Aug 2016 18:43:15 +0200 Subject: [bug] let the failures propagate In the case of wrong username/password the failure returned was 'Authentication hook did not return anything'. Right now the original failure is returned, and the producer of the failure can put a more meaningful message. - Resolves: #8399 --- src/leap/bonafide/config.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/leap/bonafide/config.py b/src/leap/bonafide/config.py index c3097cc..ae66a0e 100644 --- a/src/leap/bonafide/config.py +++ b/src/leap/bonafide/config.py @@ -227,13 +227,11 @@ class Provider(object): def callWhenMainConfigReady(self, cb, *args, **kw): d = self.first_bootstrap[self._domain] d.addCallback(lambda _: cb(*args, **kw)) - d.addErrback(log.err) return d def callWhenReady(self, cb, *args, **kw): d = self.ongoing_bootstrap[self._domain] d.addCallback(lambda _: cb(*args, **kw)) - d.addErrback(log.err) return d def has_valid_certificate(self): -- cgit v1.2.3