You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/12/30 08:32:47 UTC

[groovy] branch master updated: Refine `sendHEADRequest`

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new ff5842c0b0 Refine `sendHEADRequest`
ff5842c0b0 is described below

commit ff5842c0b0797d6cae9ce0a94e02fcfa64c16126
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Dec 30 16:30:28 2022 +0800

    Refine `sendHEADRequest`
---
 .../main/groovy/org/apache/groovy/groovysh/commands/DocCommand.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/commands/DocCommand.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/commands/DocCommand.groovy
index 99da8eb2b2..ba148b192b 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/commands/DocCommand.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/commands/DocCommand.groovy
@@ -201,7 +201,7 @@ class DocCommand extends CommandSupport {
             }
         }
 
-        if (ioe) fail "Sending a HEAD request to $url failed (${e}). Please check your network settings."
+        if (ioe) fail "Sending a HEAD request to $url failed (${ioe}). Please check your network settings."
 
         return false
     }