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:08 UTC

[groovy] branch GROOVY_4_0_X updated: Refine `sendHEADRequest`

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

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


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

commit 333f346c5f5d5b50d855cddf8cd19547d22ed5d8
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
     }