From e6f1c9769553e25dde631af58b163bf8efc05697 Mon Sep 17 00:00:00 2001 From: e550443 Date: Mon, 12 Aug 2024 17:48:23 +0200 Subject: [PATCH] feat: More information about error happened Refs: #43 --- app/WeasyprintController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/WeasyprintController.py b/app/WeasyprintController.py index 5de2371..40d072d 100644 --- a/app/WeasyprintController.py +++ b/app/WeasyprintController.py @@ -56,7 +56,7 @@ def convert_html(): def process_error(e, err_msg, status): logging.exception(msg=err_msg + ": " + str(e)) - return Response(err_msg, mimetype="plain/text", status=status) + return Response(err_msg + ": " + getattr(e, 'message', repr(e)), mimetype="plain/text", status=status) def start_server(port):