Mercurial > libervia-backend
diff src/core/sat_main.py @ 1063:6ec513ad92c2
frontends: async failures are more detailed (full class name + error message)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 07 Jun 2014 15:39:20 +0200 |
parents | b2b9c184033f |
children | b29452cab50b |
line wrap: on
line diff
--- a/src/core/sat_main.py Sat Jun 07 15:20:39 2014 +0200 +++ b/src/core/sat_main.py Sat Jun 07 15:39:20 2014 +0200 @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from sat.core.i18n import _, languageSwitch +from sat.core.i18n import _, D_, languageSwitch from twisted.application import service from twisted.internet import defer from twisted.words.protocols.jabber import jid @@ -298,7 +298,7 @@ def check_result(result): if not result: log.warning(_('Authentication failure of profile %s') % profile) - raise exceptions.PasswordError(_("The provided profile password doesn't match.")) + raise exceptions.PasswordError(D_("The provided profile password doesn't match.")) if not session_data: # avoid to create two profile sessions when password if specified return self.memory.newAuthSession(password, profile)