Adjust text for Error 0

Error 0 was previously: "URL not well formed"
But actually , this wasn't the exact reason why an error 0 can be returned.
Error 0 means that no server are reachable to even respond.
So I have replaced it by "Server not found".
This commit is contained in:
Alezia Kurdis 2021-12-06 22:13:16 -05:00 committed by GitHub
parent b7734e32d0
commit 15214949be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ function brokenURLReportRequestUrlValidityCheck(no) {
function brokenURLReportGetResponseStatus() {
if (brokenURLReportHttpRequest.status === 0 || brokenURLReportHttpRequest.status > 299) {
if (brokenURLReportHttpRequest.status === 0) {
brokenURLReportUrlList[brokenURLReportProcessedUrlNo].validity = "0 - URL not well-formed";
brokenURLReportUrlList[brokenURLReportProcessedUrlNo].validity = "0 - Server not found";
} else {
brokenURLReportUrlList[brokenURLReportProcessedUrlNo].validity = brokenURLReportHttpRequest.status + " - " + brokenURLReportHttpRequest.statusText;
}