diff options
| author | Jeremy Kersten <jke@odoo.com> | 2017-11-17 12:01:40 +0100 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2017-11-17 12:02:05 +0100 |
| commit | a0a5443e8f0606b561d2955449a690ea8a178703 (patch) | |
| tree | 4f0630bde5ad10b7a6d97f50cdbd91224a5b9d26 /addons/auth_signup/controllers/main.py | |
| parent | 9cbf0c87e2d6705d72ca4613f761b6b2b9901afd (diff) | |
[FIX] auth_signup: properly display the error message
Was "Internal Error 500"
Introduced at c3bf161
This closes #20941
Diffstat (limited to 'addons/auth_signup/controllers/main.py')
| -rw-r--r-- | addons/auth_signup/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 9fc6ee22a40..1d1b0476337 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -46,7 +46,7 @@ class AuthSignupHome(Home): ).send_mail(user_sudo.id, force_send=True) return super(AuthSignupHome, self).web_login(*args, **kw) except UserError as e: - qcontext['error'] = e.message or e.name + qcontext['error'] = e.name or e.value except (SignupError, AssertionError) as e: if request.env["res.users"].sudo().search([("login", "=", qcontext.get("login"))]): qcontext["error"] = _("Another user is already registered using this email address.") |
