From: Jan Szejko Date: Mon, 16 Oct 2017 09:31:11 +0000 (+0200) Subject: better error reporting on publish X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/f94960707e13dc99bc497ac68427de6834d311fd better error reporting on publish --- diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index e6f6cca7..3d1a47f3 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -571,7 +571,7 @@ def publish(request, slug): except NotAuthorizedError: return http.HttpResponseRedirect(reverse('apiclient_oauth')) except BaseException, e: - return http.HttpResponse(e) + return http.HttpResponse(repr(e)) else: return http.HttpResponseRedirect(book.get_absolute_url())