mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Improve message about error 500
This commit is contained in:
parent
fc50478382
commit
a30ed783da
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ class Diagnoser():
|
||||||
socket.getaddrinfo = old_getaddrinfo
|
socket.getaddrinfo = old_getaddrinfo
|
||||||
|
|
||||||
if r.status_code not in [200, 400]:
|
if r.status_code not in [200, 400]:
|
||||||
raise Exception("Bad response from diagnosis server.\nURL: %s\nStatus code: %s\nMessage: %s" % (url, r.status_code, r.content))
|
raise Exception("The remote diagnosis server failed miserably while trying to diagnose your server. This is most likely an error on Yunohost's infrastructure and not on your side. Please contact the YunoHost team an provide them with the following information.\nURL: <pre>%s</pre>\nStatus code: <pre>%s</pre>" % (url, r.status_code))
|
||||||
if r.status_code == 400:
|
if r.status_code == 400:
|
||||||
raise Exception("Diagnosis request was refused: %s" % r.content)
|
raise Exception("Diagnosis request was refused: %s" % r.content)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue