From f94960707e13dc99bc497ac68427de6834d311fd Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Mon, 16 Oct 2017 11:31:11 +0200 Subject: [PATCH] better error reporting on publish --- apps/catalogue/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.20.1