From a9b259ef269304dcac451f3cbca6a60813b42641 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 6 Sep 2017 17:41:29 +0000 Subject: [PATCH] Changed the message shown when xml file parsing fails during draft submission to include the actual error message from the xml parser. Fixes issue #2353. - Legacy-Id: 14102 --- ietf/submit/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/submit/forms.py b/ietf/submit/forms.py index 6ea057454..260fe6db2 100644 --- a/ietf/submit/forms.py +++ b/ietf/submit/forms.py @@ -151,7 +151,7 @@ class SubmissionUploadForm(forms.Form): self.xmltree = parser.parse() ok, errors = self.xmltree.validate() except Exception as exc: - raise forms.ValidationError("An exception occurred when trying to process the XML file: %s" % exc) + raise forms.ValidationError("An exception occurred when trying to process the XML file: %s" % exc.msg) if not ok: # Each error has properties: #