Skip to content

Commit

Permalink
make javadoc url search more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
paulk-asert committed Jul 14, 2023
1 parent 61f7460 commit 1e50b32
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ class DocCommand extends CommandSupport {
}
}

if (ioe) fail "Sending a HEAD request to $url failed (${ioe}). Please check your network settings."
io.out.println "Sending a HEAD request to $url failed (${ioe}). Please check your network settings."
// allow timeout to fail since this will happen if we check e.g. for an early access URL for a release JDK version
if (ioe !instanceof SocketTimeoutException) fail "Unable to get URLs for documentation."

return false
}
Expand Down

0 comments on commit 1e50b32

Please sign in to comment.