From 46925c29c4bc6d2785d5fc74b9704d3b3dc07443 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 28 Sep 2017 14:57:03 +0200 Subject: [PATCH] Add error detail to the message --- datacenterlight/views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index f29d4087..863eb80c 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -536,9 +536,10 @@ class OrderConfirmationView(DetailView): section='payment_error'), 'msg_title': str(_('Error.')), 'msg_body': str( - _('There was a payment related error.' - ' On close of this popup, you will be redirected back to' - ' the payment page.')) + _('There was a payment related error.
' + 'Details: {error_detail}
' + 'On close of this popup, you will be redirected back to' + ' the payment page.'.format(error_detail=msg))) } return HttpResponse(json.dumps(response), content_type="application/json")