summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorsergiov <sergiov@merchise.org>2016-10-24 16:34:06 -0400
committerMartin Trigaux <mat@odoo.com>2016-12-09 14:32:16 +0100
commit4792a669d3fb167800d5cdb3d2c03d2056b952f0 (patch)
tree376b32a1482c0cc9cfbf354afbf2eae6d662b72d /addons
parent85dc060a066163217be25895b090bf5a75ea61e2 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/auth_signup/controllers/main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py
index 7678db52198..e7656a6f50a 100644
--- a/addons/auth_signup/controllers/main.py
+++ b/addons/auth_signup/controllers/main.py
@@ -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)