Skip to content
Snippets Groups Projects
Commit 3e7dfe4a authored by David Broder-Rodgers's avatar David Broder-Rodgers
Browse files

Updated mirror audit problem message

parent ed9f775b
No related branches found
No related tags found
No related merge requests found
......@@ -1494,15 +1494,15 @@ class ResourceAuditor
status_code, _, _ = curl_output "--connect-timeout", "15", "--output", "/dev/null", "--range", "0-0", \
"--write-out", "%{http_code}", url
unless status_code.start_with? "20"
problem "The mirror #{url} is not reachable (HTTP status code #{status_code})"
problem "The URL #{url} is not reachable (HTTP status code #{status_code})"
end
elsif url.start_with? "git"
unless Utils.git_remote_exists url
problem "The mirror #{url} is not a valid git URL"
problem "The URL #{url} is not a valid git URL"
end
elsif url.start_with? "svn"
unless Utils.svn_remote_exists url
problem "The mirror #{url} is not a valid svn URL"
problem "The URL #{url} is not a valid svn URL"
end
end
check_insecure_mirror(url) if url.start_with? "http:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment