Skip to content

Commit 35f4aea

Browse files
committed
Tweaked the error message for 2 submission form validation errors.
- Legacy-Id: 10128
1 parent cfefc0a commit 35f4aea

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

ietf/submit/forms.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,20 @@ def clean(self):
206206
txt_file.seek(0)
207207

208208
if not self.filename:
209-
raise forms.ValidationError("Could not extract a valid draft name from the upload")
209+
raise forms.ValidationError("Could not extract a valid draft name from the upload"
210+
"To fix this in a text upload, please make sure that the full draft name including "
211+
"revision number appears centered on its own line below the document title on the "
212+
"first page. In an xml upload, please make sure that the top-level <rfc/> "
213+
"element has a docName attribute which provides the full draft name including "
214+
"revision number.")
210215

211216
if not self.revision:
212-
raise forms.ValidationError("Could not extract a valid draft revision from the upload")
217+
raise forms.ValidationError("Could not extract a valid draft revision from the upload. "
218+
"To fix this in a text upload, please make sure that the full draft name including "
219+
"revision number appears centered on its own line below the document title on the "
220+
"first page. In an xml upload, please make sure that the top-level <rfc/> "
221+
"element has a docName attribute which provides the full draft name including "
222+
"revision number.")
213223

214224
if not self.title:
215225
raise forms.ValidationError("Could not extract a valid title from the upload")

0 commit comments

Comments
 (0)