Tweaked the error message for review message URLs which cannot be retrieved.
- Legacy-Id: 14297
This commit is contained in:
parent
2c2f5b68bf
commit
8786b5c700
|
@ -423,7 +423,7 @@ class CompleteReviewForm(forms.Form):
|
|||
if url:
|
||||
r = requests.get(url)
|
||||
if r.status_code != 200:
|
||||
raise forms.ValidationError("Trying to retrieve the URL resulted in status code %s: %s" % (r.status_code, r.text[:64]))
|
||||
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))
|
||||
return url
|
||||
|
||||
def clean(self):
|
||||
|
|
Loading…
Reference in a new issue