From b97643c5b8cbee752659269f0be15ff460efe193 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 --- bonafide/src/leap/bonafide/config.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'bonafide/src') diff --git a/bonafide/src/leap/bonafide/config.py b/bonafide/src/leap/bonafide/config.py index c3097cc8..ae66a0e8 100644 --- a/bonafide/src/leap/bonafide/config.py +++ b/bonafide/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