[FIX] auth_signup: display full error message

When the user name entered hasn't an email specified the error message wasn't
displayed in the reset view.
The error message was in e.name, not e.message
This commit is contained in:
sergiov 2016-10-24 16:34:06 -04:00 committed by Martin Trigaux
parent 85dc060a06
commit 4792a669d3
No known key found for this signature in database
GPG Key ID: 7B0E288E7C0F83A7
1 changed files with 1 additions and 2 deletions

View File

@ -84,8 +84,7 @@ class AuthSignupHome(openerp.addons.web.controllers.main.Home):
qcontext['error'] = _("Could not reset your password")
_logger.exception('error when resetting password')
except Exception, e:
qcontext['error'] = _(e.message)
qcontext['error'] = e.message or e.name
return request.render('auth_signup.reset_password', qcontext)