Skip to content

Commit 8786b5c

Browse files
committed
Tweaked the error message for review message URLs which cannot be retrieved.
- Legacy-Id: 14297
1 parent 2c2f5b6 commit 8786b5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/views_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def clean_review_url(self):
423423
if url:
424424
r = requests.get(url)
425425
if r.status_code != 200:
426-
raise forms.ValidationError("Trying to retrieve the URL resulted in status code %s: %s" % (r.status_code, r.text[:64]))
426+
raise forms.ValidationError("Trying to retrieve the URL resulted in status code %s: %s. Please provide an URL that can be retrieved." % (r.status_code, r.reason))
427427
return url
428428

429429
def clean(self):

0 commit comments

Comments
 (0)