From 06b1ce9e7261ce8ca50e15e06e7990d04a8f5364 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Sun, 1 Oct 2017 20:32:51 +0200 Subject: [PATCH] Update error message --- hosting/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index ae1efe2b..77c7a108 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -1143,8 +1143,9 @@ def forbidden_view(request, exception=None, reason=''): Handle 403 error """ logger.error(str(exception) if exception else None) - all_messages = messages.get_messages(request) - messages.add_message(request, messages.ERROR, reason) + err_msg = _('There was an error processing your request. Please try ' + 'again. Details: {reason}'.format(reason=reason)) + messages.add_message(request, messages.ERROR, err_msg) return HttpResponseRedirect( request.get_full_path() )