summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/static
diff options
context:
space:
mode:
authorDamien Bouvy <dbo@odoo.com>2019-08-16 14:10:03 +0000
committerDamien Bouvy <dbo@odoo.com>2019-08-16 15:52:40 +0000
commit5193f0d010f5cd3bf4ccc5c7e39aff3fdacdd111 (patch)
tree79b8aca8522478895b2355b9b4c91462b2b9728c /addons/payment_authorize/static
parentc284bda4b0e48577998f67ed93ea0c61e1cfabf1 (diff)
[IMP] payment*: better handling of error message
Sometimes there's a title + content, sometimes not; reading the message itself usually yields a None somewhere which is fugly.
Diffstat (limited to 'addons/payment_authorize/static')
-rw-r--r--addons/payment_authorize/static/src/js/payment_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_authorize/static/src/js/payment_form.js b/addons/payment_authorize/static/src/js/payment_form.js
index 11eda20b21d..d5d02a696c7 100644
--- a/addons/payment_authorize/static/src/js/payment_form.js
+++ b/addons/payment_authorize/static/src/js/payment_form.js
@@ -78,7 +78,7 @@ PaymentForm.include({
self.displayError(
_t('Server Error'),
_t("We are not able to add your payment method at the moment.") +
- error.message.data.message
+ this._parseError(error)
);
});
};