]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
Include method and URL in curl error (#214)
authorChristian Tacke <ChristianTacke@users.noreply.github.com>
Sat, 4 Jun 2016 02:15:16 +0000 (04:15 +0200)
committerLukas Schauer <lukas2511@users.noreply.github.com>
Sat, 4 Jun 2016 02:15:16 +0000 (04:15 +0200)
In case curl gives an error, it's helpful to know the URL
being tried and the method. In the GET case, one can easily
retry in the shell and debug this.

letsencrypt.sh

index bb5f3129d97f22183862a15a7b5148725e69f984..4efa57058c8b4361b01ead82e8969c241d4ee7ea 100755 (executable)
@@ -332,7 +332,7 @@ http_request() {
   set -e
 
   if [[ ! "${curlret}" = "0" ]]; then
-    _exiterr "Problem connecting to server (curl returned with ${curlret})"
+    _exiterr "Problem connecting to server (${1} for ${2}; curl returned with ${curlret})"
   fi
 
   if [[ ! "${statuscode:0:1}" = "2" ]]; then